Computer Science MCQs for 1st Year (Federal Board)

This page has over 1,600 multiple-choice questions for Computer Science (1st Year (Federal Board)), arranged in 7 chapters and 15 topics. The chapters include Digital Logic and Boolean Algebra, Software Development, Networks and Cyber Security, Computational Thinking and Algorithms and Programming in Python. Every question has four options, an instant answer and, where available, a short explanation.

Chapters and topics

  • Digital Logic and Boolean Algebra 2 topics · 239 MCQs
  • Software Development 2 topics · 219 MCQs
  • Networks and Cyber Security 2 topics · 230 MCQs
  • Computational Thinking and Algorithms 2 topics · 206 MCQs
  • Programming in Python 3 topics · 325 MCQs
  • Data and Analysis 2 topics · 214 MCQs
  • Applications and Impacts of Computing 2 topics · 204 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. A gate whose output column for AB = 00, 01, 10, 11 is 1001 is a/an:

  1. NAND gate
  2. AND gate
  3. OR gate
  4. XNOR gate
Show the answer

Answer: D. XNOR gate

The correct answer is “XNOR gate”. XNOR: 1001.

Q2. Which SDLC phase involves installing and releasing the software for users?

  1. deployment
  2. testing
  3. maintenance
  4. coding (implementation)
Show the answer

Answer: A. deployment

Deployment: installing and releasing the software for users.

Q3. Which topology has this disadvantage: a break in the backbone brings the whole network down?

  1. mesh
  2. bus
  3. star
  4. hybrid
Show the answer

Answer: B. bus

Bus (dis): a break in the backbone brings the whole network down.

Q4. How many times is the inner statement executed in: FOR i ← 1 TO 5: FOR j ← 1 TO 2: OUTPUT i × j?

  1. 10
  2. 4
  3. 7
  4. 5
Show the answer

Answer: A. 10

The correct answer is “10”. 5 × 2 = 10.

Q5. What is a variable listed in the function definition called?

  1. global variable
  2. parameter
  3. def
  4. argument
Show the answer

Answer: B. parameter

Parameter: a variable listed in the function definition.

Q6. The mode of [15, 1, 29, 26, 26, 20, 16] is:

  1. 26
  2. 29
  3. 19
  4. 20
Show the answer

Answer: A. 26

The correct answer is “26”. Most frequent value.

Practise all over 1,600 questions

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

Start practising →