1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 10
  4. The loop that is best when the number of iterations is…

Added 16 Nov 2026

The loop that is best when the number of iterations is known in advance is:

  1. while loop
  2. do-while loop
  3. for loop Correct answer
  4. nested loop

Correct answer

C. for loop

12 views

MCQSEXAM

Explanation

A for loop is ideal when you know how many times to repeat. It combines initialisation, condition, and increment in one line. while and do-while are better for uncertain iterations.

Reference

Asked in: Matric,FBISE

Preparing for an exam?

Doubts & discussion

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

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Science FBISE Class 10 MCQs

Practise all Computer Science FBISE Class 10 MCQs

Similar MCQs