Important MCQ

A while loop may execute

Q.A while loop may execute

A) at least once always
B) zero times
C) exactly once
D) only twice
Correct Answer:
Option B
Detailed Explanation:
B) zero times is correct. A while loop checks its condition before each iteration, so it may run zero times. The loop body must update state when needed to avoid an unintended infinite loop.