SUBJECT – ICT
CLASS-VIII
CHAPTER-7: LOOPS IN PYTHON
Multiple Choice Questions [Page-105,106]
1. What does a while loop do?
i. Repeats a chunk of code a given number of times
ii. Repeats a chunk of code until a condition is true
iii. Repeats a chunk of code until a condition is false
iv. Repeats a chunk of code indefinitely
Answer: (ii)
2. Which of the following is/are a looping statement in Python?
i. for statement ii. while statement iii. if statement iv. break statement
Answer: (iii)
3. Which of the following statements allow/allows to repeat a task for a fixed number
of times?
i. for statement ii. while statement iii. Both (i) and (ii) iv. continue statement
Answer: (iii)
4. Which of the following statements terminates the execution of the loop?
i. if ii. For iii. break iv. continue
Answer: (iii)
5. Which of the following is a conditional statement in Python?
i. for statement ii. while statement iii. if statement iv. break statement
Answer: (iii)
6. Which of the following statements are used when the number of repetitions is
known?
i. for statement ii. while statement iii. if…else statement iv. continue statement
Answer: (ii)
7. Which of the following statements skips the current iteration of a loop?
i. if ii. for iii. break iv. continue
Answer: (iv)