Important MCQ

A do-while loop executes at least

Q.A do-while loop executes at least

A) once
B) twice
C) zero times
D) three times
Correct Answer:
Option A
Detailed Explanation:
A) once 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.