1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 9
  4. Which of the following is a loop statement in Python?

Added 15 Nov 2026

Which of the following is a loop statement in Python?

  1. if
  2. for Correct answer
  3. print
  4. input

Correct answer

B. for

10 views

MCQSEXAM

Explanation

for is a loop that repeats a block of code a set number of times, and while repeats it as long as a condition stays true. if is a selection statement that runs code only once when a condition holds, and print simply displays output. Loops are what save a programmer from writing the same line again and again.

Reference

Asked in: Matric,FBISE

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Science FBISE Class 9 MCQs

Practise all Computer Science FBISE Class 9 MCQs

Similar MCQs