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:
- NAND gate
- AND gate
- OR gate
- 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?
- deployment
- testing
- maintenance
- 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?
- mesh
- bus
- star
- 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?
- 10
- 4
- 7
- 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?
- global variable
- parameter
- def
- 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:
- 26
- 29
- 19
- 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 →