Which loop is guaranteed to execute at least once?
A
For loop
B
Do-while loop
C
Nested loop
D
While loop
Correct Answer: Option B — Do-while loop
Explanation:
A do-while loop executes its body first and then checks the condition, guaranteeing that the loop runs at least once regardless of whether the condition is true.