Important MCQ

A do-while loop checks its condition

Q.A do-while loop checks its condition

A) before executing the body
B) never
C) after executing the body
D) only once at the start
Correct Answer:
Option C
Detailed Explanation:
C) after executing the body 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.