1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 11
  4. Which loop is used when the number of iterations is known?

Added 16 Nov 2026

Which loop is used when the number of iterations is known?

  1. while
  2. for Correct answer
  3. do-while
  4. if

Correct answer

B. for

10 views

MCQSEXAM

Explanation

A for loop is ideal when you know how many times to repeat. A while loop is better when the condition is open-ended.

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 11 MCQs

Practise all Computer Science FBISE Class 11 MCQs

Similar MCQs