IT Jobs Computer Science MCQs with Answers

179 practice MCQs on Computer Science for IT Jobs tests. Think of your answer first, then open "Show answer and explanation". These are practice questions, not official examination papers.

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

Q141. Which SQL clause filters rows?

  1. GROUP BY
  2. WHERE
  3. ORDER BY
  4. HAVING
Show answer and explanation

Correct answer: B. WHERE

WHERE filters rows.

Q142. 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.

Q143. 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.

Q144. 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.

Q145. 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.

Q146. 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.

Q147. 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.

Q148. 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.

Q149. 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.

Q150. What is an array?

  1. A function
  2. A loop
  3. A single variable
  4. A collection of elements of the same type
Show answer and explanation

Correct answer: D. A collection of elements of the same type

Arrays store multiple values.

Other subjects

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