About Computer Science MCQs

Master computer science concepts with our comprehensive MCQs. This section covers Artificial Intelligence, Programming, Data Structures, and more. Perfect for exam prep and interviews.

Practice 50 Artificial Intelligence MCQs

Question 1: The term 'Artificial Intelligence' was coined by:

  • A Alan Turing
  • B Tim Berners-Lee
  • C Charles Babbage
  • D John McCarthy

Explanation: McCarthy coined the term in 1955–56. Useful for: NTS, PPSC, FPSC, FIA.

Question 2: How many bits are there in one byte?

  • A 4
  • B 8
  • C 16
  • D 32

Explanation: One byte equals 8 bits. Useful for: NTS, PPSC, FPSC, FIA.

Question 3: Which of the following is volatile memory?

  • A ROM
  • B RAM
  • C Hard disk
  • D Flash drive

Explanation: RAM loses its contents when power is switched off. Useful for: NTS, PPSC, FPSC, FIA.

Question 4: Who is known as the father of the computer?

  • A Bill Gates
  • B Steve Jobs
  • C Alan Turing
  • D Charles Babbage

Explanation: Babbage designed the Analytical Engine. Useful for: NTS, PPSC, FPSC, FIA.

Question 5: The brain of the computer is the:

  • A Monitor
  • B Keyboard
  • C CPU
  • D RAM

Explanation: The CPU processes instructions. Useful for: NTS, PPSC, FPSC, FIA.

Question 6: Which of the following is an input device?

  • A Keyboard
  • B Speaker
  • C Printer
  • D Monitor

Explanation: A keyboard sends data into the computer. Useful for: NTS, PPSC, FPSC, FIA.

Question 7: Which of the following is an output device?

  • A Mouse
  • B Printer
  • C Scanner
  • D Keyboard

Explanation: A printer produces output from the computer. Useful for: NTS, PPSC, FPSC, FIA.

Question 8: 1 Kilobyte (KB) equals:

  • A 1,024 bytes
  • B 100 bytes
  • C 1,000 bits
  • D 1,024 bits

Explanation: In binary measure, 1 KB = 1,024 bytes. Useful for: NTS, PPSC, FPSC, FIA.

Question 9: 1 Megabyte (MB) equals:

  • A 1,024 GB
  • B 1,024 KB
  • C 100 KB
  • D 1,000 bytes

Explanation: 1 MB = 1,024 KB. Useful for: NTS, PPSC, FPSC, FIA.

Question 10: Which memory is the fastest among the options?

  • A ROM
  • B RAM
  • C Cache memory
  • D Hard disk

Explanation: Cache sits close to the CPU and is very fast. Useful for: NTS, PPSC, FPSC, FIA.

Question 11: USB stands for:

  • A Universal Storage Block
  • B Universal Serial Bus
  • C United System Board
  • D Unified Serial Box

Explanation: USB is a standard connection interface. Useful for: NTS, PPSC, FPSC, FIA.

Question 12: BIOS stands for:

  • A Boot Instruction Output System
  • B Binary Input Output Sequence
  • C Basic Input/Output System
  • D Basic Internal Operating Software

Explanation: BIOS initialises hardware at start-up. Useful for: NTS, PPSC, FPSC, FIA.

Question 13: Which technology was used in first-generation computers?

  • A Transistors
  • B Microprocessors
  • C Vacuum tubes
  • D Integrated circuits

Explanation: First-generation computers used vacuum tubes. Useful for: NTS, PPSC, FPSC, FIA.

Question 14: Which technology marked second-generation computers?

  • A Vacuum tubes
  • B Microprocessors
  • C Transistors
  • D Quantum chips

Explanation: Transistors replaced vacuum tubes. Useful for: NTS, PPSC, FPSC, FIA.

Question 15: A computer virus is:

  • A A search engine
  • B A type of keyboard
  • C A hardware part
  • D Malicious software

Explanation: Viruses harm files and systems. Useful for: NTS, PPSC, FPSC, FIA.

Question 16: A firewall is used to:

  • A Store files
  • B Speed up the internet
  • C Print documents
  • D Protect a network from unauthorised access

Explanation: Firewalls filter network traffic. Useful for: NTS, PPSC, FPSC, FIA.

Question 17: Phishing is:

  • A A fraudulent attempt to steal sensitive information
  • B A search method
  • C A programming language
  • D A type of hardware

Explanation: Attackers pose as trusted entities to steal data. Useful for: NTS, PPSC, FPSC, FIA.

Question 18: Which data structure follows the LIFO principle?

  • A Array
  • B Queue
  • C Stack
  • D Tree

Explanation: LIFO means last in, first out. Useful for: NTS, PPSC, FPSC, FIA.

Question 19: A queue follows which principle?

  • A FIFO
  • B LIFO
  • C Random access
  • D LILO only

Explanation: FIFO means first in, first out. Useful for: NTS, PPSC, FPSC, FIA.

Question 20: Which language is used to query databases?

  • A CSS
  • B SQL
  • C C
  • D HTML

Explanation: SQL manages relational databases. Useful for: NTS, PPSC, FPSC, FIA.

Question 21: SQL stands for:

  • A Simple Query Language
  • B Sequential Query Logic
  • C Structured Query Language
  • D Standard Question Language

Explanation: SQL is the standard database language. Useful for: NTS, PPSC, FPSC, FIA.

Question 22: A primary key in a database table:

  • A Stores images
  • B Allows duplicates
  • C Uniquely identifies each record
  • D Deletes records

Explanation: Each primary key value is unique. Useful for: NTS, PPSC, FPSC, FIA.

Question 23: Which of the following is a web browser?

  • A Oracle
  • B Firefox
  • C Linux
  • D Windows

Explanation: Firefox is a browser. Useful for: NTS, PPSC, FPSC, FIA.

Question 24: URL stands for:

  • A Universal Resource Link
  • B Uniform Resource Locator
  • C Unified Reference Locator
  • D User Resource Line

Explanation: A URL is a web address. Useful for: NTS, PPSC, FPSC, FIA.

Question 25: The World Wide Web was invented by:

  • A Dennis Ritchie
  • B Bill Gates
  • C Mark Zuckerberg
  • D Tim Berners-Lee

Explanation: Berners-Lee invented the Web in 1989. Useful for: NTS, PPSC, FPSC, FIA.

Question 26: Which protocol is used for secure web browsing?

  • A FTP
  • B HTTP
  • C SMTP
  • D HTTPS

Explanation: HTTPS encrypts web traffic. Useful for: NTS, PPSC, FPSC, FIA.

Question 27: Which logic gate gives output 1 only when both inputs are 1?

  • A OR
  • B NOT
  • C XOR
  • D AND

Explanation: AND outputs 1 only if all inputs are 1. Useful for: NTS, PPSC, FPSC, FIA.

Question 28: An OR gate gives output 0 only when:

  • A Inputs differ
  • B Both inputs are 1
  • C Both inputs are 0
  • D Any input is 1

Explanation: OR outputs 0 only if all inputs are 0. Useful for: NTS, PPSC, FPSC, FIA.

Question 29: A NOT gate:

  • A Inverts its input
  • B Stores data
  • C Multiplies inputs
  • D Adds two inputs

Explanation: NOT outputs the opposite of its input. Useful for: NTS, PPSC, FPSC, FIA.

Question 30: Which shortcut key copies the selected text in MS Office?

  • A Ctrl+V
  • B Ctrl+X
  • C Ctrl+C
  • D Ctrl+P

Explanation: Ctrl+C copies, Ctrl+X cuts, Ctrl+V pastes and Ctrl+P prints. Useful for: NTS, PPSC, FPSC, FIA.

Question 31: Which key combination undoes the last action?

  • A Ctrl+U
  • B Ctrl+X
  • C Ctrl+Z
  • D Ctrl+Y

Explanation: Ctrl+Z is Undo. Useful for: NTS, PPSC, FPSC, FIA.

Question 32: Which key combination saves a document?

  • A Ctrl+A
  • B Ctrl+N
  • C Ctrl+P
  • D Ctrl+S

Explanation: Ctrl+S is Save. Useful for: NTS, PPSC, FPSC, FIA.

Question 33: Which key combination makes selected text bold?

  • A Ctrl+I
  • B Ctrl+L
  • C Ctrl+B
  • D Ctrl+U

Explanation: Ctrl+B applies bold. Useful for: NTS, PPSC, FPSC, FIA.

Question 34: The file extension of a modern MS Word document is:

  • A .docx
  • B .pptx
  • C .xlsx
  • D .txt

Explanation: Word 2007 and later use .docx. Useful for: NTS, PPSC, FPSC, FIA.

Question 35: The file extension of a modern MS Excel workbook is:

  • A .pdf
  • B .pptx
  • C .docx
  • D .xlsx

Explanation: Excel 2007 and later use .xlsx. Useful for: NTS, PPSC, FPSC, FIA.

Question 36: Which formula adds the values in cells A1 to A5 in Excel?

  • A =ADD(A1:A5)
  • B =TOTAL(A1,A5)
  • C =PLUS(A1:A5)
  • D =SUM(A1:A5)

Explanation: SUM adds a range of cells. Useful for: NTS, PPSC, FPSC, FIA.

Question 37: The intersection of a row and a column in Excel is called a:

  • A Table
  • B Sheet
  • C Range
  • D Cell

Explanation: A cell is identified by its column letter and row number. Useful for: NTS, PPSC, FPSC, FIA.

Question 38: The file extension of a modern PowerPoint presentation is:

  • A .pptx
  • B .mp4
  • C .xlsx
  • D .docx

Explanation: PowerPoint 2007 and later use .pptx. Useful for: NTS, PPSC, FPSC, FIA.

Question 39: IP in 'IP address' stands for:

  • A Internet Protocol
  • B Internal Program
  • C Information Packet
  • D International Port

Explanation: An IP address identifies a device on a network. Useful for: NTS, PPSC, FPSC, FIA.

Question 40: LAN stands for:

  • A Large Area Network
  • B Local Area Network
  • C Linked Area Node
  • D Long Access Network

Explanation: A LAN connects devices in a small area. Useful for: NTS, PPSC, FPSC, FIA.

Question 41: Which device connects different networks together?

  • A Monitor
  • B Scanner
  • C Router
  • D Keyboard

Explanation: Routers forward data between networks. Useful for: NTS, PPSC, FPSC, FIA.

Question 42: Which network topology uses a central hub or switch?

  • A Bus
  • B Star
  • C Mesh
  • D Ring

Explanation: In a star topology all nodes connect to a central device. Useful for: NTS, PPSC, FPSC, FIA.

Question 43: What is the binary equivalent of decimal 10?

  • A 1001
  • B 1010
  • C 1100
  • D 1110

Explanation: 10 = 8 + 2 = 1010 in binary. Useful for: NTS, PPSC, FPSC, FIA.

Question 44: The base of the binary number system is:

  • A 10
  • B 8
  • C 16
  • D 2

Explanation: Binary uses only 0 and 1. Useful for: NTS, PPSC, FPSC, FIA.

Question 45: The base of the hexadecimal number system is:

  • A 2
  • B 8
  • C 10
  • D 16

Explanation: Hexadecimal uses digits 0–9 and A–F. Useful for: NTS, PPSC, FPSC, FIA.

Question 46: The base of the octal number system is:

  • A 10
  • B 8
  • C 16
  • D 2

Explanation: Octal uses digits 0 to 7. Useful for: NTS, PPSC, FPSC, FIA.

Question 47: Which of the following is an operating system?

  • A Android
  • B Python
  • C MySQL
  • D Chrome

Explanation: Android is a mobile operating system. Useful for: NTS, PPSC, FPSC, FIA.

Question 48: Which of the following is a high-level language?

  • A Binary code
  • B Python
  • C Assembly language
  • D Machine language

Explanation: Python is a high-level language. Useful for: NTS, PPSC, FPSC, FIA.

Question 49: A compiler converts:

  • A Source code into machine code
  • B Machine code into source code
  • C Text into audio
  • D Data into images

Explanation: A compiler translates a whole program into machine code. Useful for: NTS, PPSC, FPSC, FIA.

Question 50: HTML stands for:

  • A HyperText Markup Language
  • B High Text Machine Language
  • C HyperTransfer Markup Language
  • D Home Tool Markup Language

Explanation: HTML is the standard markup language used to structure web pages. Useful for: NTS, PPSC, FPSC, FIA.

Frequently Asked Questions

How many Artificial Intelligence MCQs are available on TestMasterMCQs?

There are currently 50 Artificial Intelligence MCQs on this page, each with four options, the correct answer and a short explanation to help you understand the concept — not just memorise the answer.

Are these Artificial Intelligence MCQs useful for PPSC, FPSC, NTS, CSS and MDCAT?

Yes — our Artificial Intelligence questions follow the syllabus of common Pakistani competitive exams including CSS, PMS, PPSC, FPSC, NTS, and university entry tests like MDCAT and ECAT.

How should I practice Artificial Intelligence MCQs for better retention?

Attempt 15–20 questions at a time, read the explanation after every question (even the ones you get right), and revisit wrong answers after 24 hours to reinforce memory.