Computer Science MCQs with Answers

Computer knowledge is tested in jobs ranging from clerical posts to IT positions. Practice MCQs on computer fundamentals, hardware, software, MS Office, networking, internet, databases and programming concepts, and see your score as soon as you finish.

Take a timed Computer Science quiz: Free account required to save your score.

Q231. What does AI stand for?

  1. Automated Internet
  2. Advanced Interface
  3. Artificial Intelligence
  4. Applied Information
Show answer and explanation

Correct answer: C. Artificial Intelligence

AI simulates human intelligence.

Q232. Which data type stores true or false values?

  1. Boolean
  2. Integer
  3. String
  4. Float
Show answer and explanation

Correct answer: A. Boolean

Boolean holds True/False.

Q233. What is a CLI?

  1. Central Line Interface
  2. Computer Line Interface
  3. Command Logic Interface
  4. Command Line Interface
Show answer and explanation

Correct answer: D. Command Line Interface

A CLI uses typed commands.

Q234. Which company developed Windows?

  1. Apple
  2. Microsoft
  3. Google
  4. IBM
Show answer and explanation

Correct answer: B. Microsoft

Windows is developed by Microsoft.

Q235. Which function key opens Help?

  1. F1
  2. F5
  3. F2
  4. F10
Show answer and explanation

Correct answer: A. F1

F1 opens Help.

Q236. Which of the following is a mobile operating system?

  1. Linux Mint
  2. Android
  3. Windows Server
  4. Unix
Show answer and explanation

Correct answer: B. Android

Android runs on smartphones.

Q237. Which statement is used to exit a loop immediately?

  1. break
  2. continue
  3. stop
  4. exit
Show answer and explanation

Correct answer: A. break

break leaves the loop.

Q238. Which command shows your current directory in Linux?

  1. pwd
  2. cwd
  3. ls
  4. cd
Show answer and explanation

Correct answer: A. pwd

pwd prints the working directory.

Q239. Which data structure is used for BFS (breadth-first search)?

  1. Heap
  2. Array
  3. Queue
  4. Stack
Show answer and explanation

Correct answer: C. Queue

BFS uses a queue.

Q240. Binary search works only on what kind of data?

  1. Text only
  2. Sorted data
  3. Numbers only
  4. Unsorted data
Show answer and explanation

Correct answer: B. Sorted data

Binary search requires sorted input.

Computer Science MCQs by exam

Other subjects

Looking for a job? Apply while you prepare: browse the latest government and private jobs on PK JOBs Hub.