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.

Q81. Which command is used to copy files in Linux?

  1. mv
  2. cpy
  3. cp
  4. copy
Show answer and explanation

Correct answer: C. cp

cp copies files.

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

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

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

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

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

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

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

Q89. What is the function of a printer driver?

  1. Allows the OS to communicate with the printer
  2. Stores print jobs only
  3. Prints pages
  4. Cleans the printer
Show answer and explanation

Correct answer: A. Allows the OS to communicate with the printer

A driver is software that controls hardware.

Q90. What is the result of 10 % 3 in programming?

  1. 0
  2. 3.33
  3. 3
  4. 1
Show answer and explanation

Correct answer: D. 1

% gives the remainder.

Other subjects

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