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.

Q31. What does a DNS server do?

  1. Prints pages
  2. Stores emails
  3. Blocks viruses
  4. Converts domain names to IP addresses
Show answer and explanation

Correct answer: D. Converts domain names to IP addresses

DNS resolves domain names.

Q32. What does LIFO stand for?

  1. Late In First Out
  2. Last Input First Output only
  3. Last In First Out
  4. Last In First On
Show answer and explanation

Correct answer: C. Last In First Out

Stack order.

Q33. Which of the following is a search engine?

  1. Firefox
  2. Google
  3. Edge
  4. Chrome
Show answer and explanation

Correct answer: B. Google

Google is a search engine.

Q34. Which is the correct way to declare an integer in C?

  1. num x;
  2. x int;
  3. integer x;
  4. int x;
Show answer and explanation

Correct answer: D. int x;

C uses int.

Q35. Which data structure uses FIFO?

  1. Tree
  2. Queue
  3. Graph
  4. Stack
Show answer and explanation

Correct answer: B. Queue

First in, first out.

Q36. Who invented the World Wide Web?

  1. Steve Jobs
  2. Tim Berners-Lee
  3. Vint Cerf
  4. Bill Gates
Show answer and explanation

Correct answer: B. Tim Berners-Lee

Berners-Lee invented the WWW in 1989.

Q37. Which scheduling algorithm executes the process that arrives first?

  1. SJF
  2. Round Robin
  3. Priority
  4. FCFS
Show answer and explanation

Correct answer: D. FCFS

FCFS is first come, first served.

Q38. Which is the primary storage device inside most computers?

  1. Hard disk / SSD
  2. Pen drive
  3. DVD
  4. Floppy disk
Show answer and explanation

Correct answer: A. Hard disk / SSD

Hard disks or SSDs hold OS and files.

Q39. What is an object in OOP?

  1. An instance of a class
  2. A type of loop
  3. A function
  4. A header file
Show answer and explanation

Correct answer: A. An instance of a class

Objects are instances of classes.

Q40. What does Wi-Fi use to send data?

  1. Cables
  2. Light only
  3. Sound waves
  4. Radio waves
Show answer and explanation

Correct answer: D. Radio waves

Wi-Fi uses radio frequencies.

Other subjects

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