Important MCQ

A do-while loop is an

Q.A do-while loop is an

A) switch statement
B) entry-controlled loop
C) if statement
D) exit-controlled loop
Correct Answer:
Option D
Detailed Explanation:
D) exit-controlled loop 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.