Join WhatsApp ChannelDaily MCQs & Exam Updates
Computer Science Medium FPSC Uploaded: 23 Aug 2026

Which loop is guaranteed to execute at least once?

  • A For loop
  • B Do-while loop
  • C Nested loop
  • D While loop
Correct Answer: Option B — Do-while loop
Explanation:
A do-while loop executes its body first and then checks the condition, guaranteeing that the loop runs at least once regardless of whether the condition is true.
Submitted by: PaperMCQs
Related MCQs