Computer Science MCQs for 10th Class (Federal Board)

This page has over 1,300 multiple-choice questions for Computer Science (10th Class (Federal Board)), arranged in 7 chapters and 12 topics. The chapters include Number Systems and Data Representation, Operating Systems and Software, Computational Thinking and Algorithms, Web Development: HTML, CSS and JavaScript and Data Science, AI and Databases. Every question has four options, an instant answer and, where available, a short explanation.

Chapters and topics

  • Number Systems and Data Representation 2 topics · 217 MCQs
  • Operating Systems and Software 2 topics · 210 MCQs
  • Computational Thinking and Algorithms 2 topics · 203 MCQs
  • Web Development: HTML, CSS and JavaScript 2 topics · 216 MCQs
  • Data Science, AI and Databases 2 topics · 209 MCQs
  • Applications of Computer Science 1 topic · 149 MCQs
  • Impacts of Computing, Digital Literacy and Entrepreneurship 1 topic · 110 MCQs

Sample Computer Science MCQs

Try these questions, then open the full practice to work through every chapter. Tap “Show the answer” after you choose.

Q1. In the hexadecimal number system, the place value (weight) of position 2 (counting from 0 at the right) is:

  1. 32
  2. 4096
  3. 256
  4. 100
Show the answer

Answer: C. 256

The correct answer is “256”. Weight = 16^2 = 256.

Q2. Which of the following is a main function of an operating system?

  1. editing photographs
  2. compiling C++ programs
  3. security and access control
  4. playing music files
Show the answer

Answer: C. security and access control

The OS manages processes, memory, files, devices and security, and provides a user interface.

Q3. Linear search for 98 in [81, 91, 98, 71, 96, 26, 41, 39, 24] makes how many comparisons?

  1. 3
  2. 9
  3. 2
  4. 4
Show the answer

Answer: A. 3

Compare from the start; 98 is at position 3.

Q4. The three core front-end technologies are:

  1. Python, SQL and C++
  2. HTML, CSS and JavaScript
  3. PHP, MySQL and Java
  4. HTML, SQL and Excel
Show the answer

Answer: B. HTML, CSS and JavaScript

The correct answer is “HTML, CSS and JavaScript”. Browser technologies.

Q5. Which database term means a single category of data stored for every record?

  1. field (column)
  2. primary key
  3. relational database
  4. E-R diagram
Show the answer

Answer: A. field (column)

Field (column): a single category of data stored for every record.

Q6. Summarizing long documents is an application of AI in:

  1. speech recognition
  2. computer vision
  3. natural language processing
  4. robotics
Show the answer

Answer: C. natural language processing

Summarizing long documents: natural language processing.

Practise all over 1,300 questions

Chapter-wise practice with instant answers, timed tests and (with a free account) your progress saved.

Start practising →