MCQ Single Best Answer Easy

QWhat happens if the loop condition is initially false in a do-while loop?

ID: #15975 C Language Loop Control 161 views
Question Info
#15975Q ID
EasyDifficulty
C Language Loop ControlTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A The loop executes once and terminates
  • B The loop does not execute at all
  • C The loop executes indefinitely
  • D The loop executes but skips the first iteration
Correct Answer: Option A

Explanation

In a do-while loop, the loop body is executed at least once even if the condition is initially false.

Share This Question

Challenge a friend or share with your study group.