Question Detail
Question
According to the 'The Infinite Loop' slide, what is the usual cause of an infinite loop?
Correct Answer
Option C is the correct answer.
Detailed Explanation
Page 7 states, 'This usually happens if you forget to update your variable inside the loop.' Without an update, the condition may never change to
False, causing the loop to run indefinitely.
Hint
An infinite loop means the condition *never* becomes false. How does a condition typically change its truth value over time?