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.

Q131. What does USB stand for?

  1. Universal Serial Bus
  2. United Serial Bus
  3. Universal Storage Bus
  4. Universal System Bus
Show answer and explanation

Correct answer: A. Universal Serial Bus

USB is a standard interface.

Q132. Which statement skips the current iteration of a loop?

  1. continue
  2. skip
  3. pass
  4. break
Show answer and explanation

Correct answer: A. continue

continue goes to the next iteration.

Q133. What is inheritance in OOP?

  1. Hiding data
  2. Overloading operators
  3. A class acquiring properties of another class
  4. Creating objects
Show answer and explanation

Correct answer: C. A class acquiring properties of another class

Inheritance enables code reuse.

Q134. Which shortcut key is used to redo an action?

  1. Ctrl + R
  2. Ctrl + Z
  3. Ctrl + Y
  4. Ctrl + U
Show answer and explanation

Correct answer: C. Ctrl + Y

Ctrl+Y redoes.

Q135. What is a view in SQL?

  1. An index
  2. A backup
  3. A physical table
  4. A virtual table based on a query
Show answer and explanation

Correct answer: D. A virtual table based on a query

A view stores a query, not data.

Q136. What is malware?

  1. A browser extension
  2. Hardware repair tool
  3. An email service
  4. Malicious software
Show answer and explanation

Correct answer: D. Malicious software

Malware harms systems.

Q137. Who is known as the father of modern computer science?

  1. Charles Babbage
  2. Alan Turing
  3. John McCarthy
  4. Tim Berners-Lee
Show answer and explanation

Correct answer: B. Alan Turing

Turing laid the foundations of computation.

Q138. What is two-factor authentication?

  1. Logging in twice
  2. Using two passwords
  3. Using two computers
  4. Using two different verification methods
Show answer and explanation

Correct answer: D. Using two different verification methods

2FA adds a second proof of identity.

Q139. What is a GUI?

  1. Graphic Unit Interface
  2. General User Interface
  3. Global User Interface
  4. Graphical User Interface
Show answer and explanation

Correct answer: D. Graphical User Interface

A GUI uses windows and icons.

Q140. Which SQL command removes a table completely?

  1. TRUNCATE ROW
  2. DROP TABLE
  3. REMOVE TABLE
  4. DELETE
Show answer and explanation

Correct answer: B. DROP TABLE

DROP TABLE deletes the table structure.

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.