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.

Q221. What does .gov represent in a domain?

  1. Group
  2. Government
  3. General
  4. Gaming
Show answer and explanation

Correct answer: B. Government

.gov is for government sites.

Q222. What is a nibble?

  1. 16 bits
  2. 8 bits
  3. 4 bits
  4. 2 bits
Show answer and explanation

Correct answer: C. 4 bits

A nibble is half a byte.

Q223. Which device connects devices within a LAN using MAC addresses?

  1. Router
  2. Switch
  3. Repeater
  4. Modem
Show answer and explanation

Correct answer: B. Switch

A switch forwards frames by MAC address.

Q224. What is the process of restarting a computer called?

  1. Logoff
  2. Shutdown
  3. Sleep
  4. Reboot
Show answer and explanation

Correct answer: D. Reboot

A reboot restarts the system.

Q225. Which function prints output in Python?

  1. echo
  2. print()
  3. printf()
  4. cout
Show answer and explanation

Correct answer: B. print()

Python uses print().

Q226. Which generation of computers used microprocessors?

  1. Fourth generation
  2. First generation
  3. Third generation
  4. Second generation
Show answer and explanation

Correct answer: A. Fourth generation

The fourth generation used microprocessors.

Q227. What is the extension of a PowerPoint file?

  1. .pptx
  2. .pdf
  3. .xlsx
  4. .docx
Show answer and explanation

Correct answer: A. .pptx

PowerPoint uses .pptx.

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

Q229. Which shortcut key prints a document?

  1. Ctrl + O
  2. Ctrl + P
  3. Ctrl + S
  4. Ctrl + N
Show answer and explanation

Correct answer: B. Ctrl + P

Ctrl+P prints.

Q230. Which port is used to connect a network cable?

  1. HDMI
  2. USB-C
  3. VGA
  4. RJ-45 (Ethernet)
Show answer and explanation

Correct answer: D. RJ-45 (Ethernet)

RJ-45 connects Ethernet cables.

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.