MCQ
When does an infinite loop occur in a while loop?
Unit-3 Programming Fundamentals
A When the condition is checked only once
B When the condition never becomes false
C When the body has one statement
D When the loop counter increments
Explanation

If the condition never becomes false, the loop body runs forever, creating an infinite loop.