Important MCQ

Which keyword starts a do-while loop?

Q.Which keyword starts a do-while loop?

A) repeat
B) do
C) loop
D) while
Correct Answer:
Option B
Detailed Explanation:
B) do is correct. A do-while loop executes its body before checking the condition, so it runs at least once. Its closing while(condition) is followed by a semicolon.