1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 10
  4. Which loop is guaranteed to execute at least once?

Added 16 Nov 2026

Which loop is guaranteed to execute at least once?

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

Correct answer

C. do-while loop

11 views

MCQSEXAM

Explanation

A do-while loop checks its condition after executing the body, so the body runs at least once. A while loop checks before, so it may never run. This is a standard exam point.

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