Final answer:
Infinite loops result from a continuation condition that never becomes false, causing the loop to run indefinitely. Proper exit conditions are necessary to avoid these loops in various types of loop constructs.
Step-by-step explanation:
The statement about infinite loops is slightly incorrect. Infinite loops occur when the loop continuation condition in a while, for, or do-while statement never becomes false, not true. If the condition never becomes false, the loop will execute indefinitely because as far as the program is concerned, the loop's work is never done.
In programming, it's critical to ensure that loops have proper exit conditions. For a while loop, this often means updating a variable within the loop that affects the loop's continuation condition. In a for loop, it typically involves iterating over a range of values and terminating once the end of the range is reached. Do-while loops are structured such that they always run at least once, but they too require a condition that eventually evaluates to false in order to prevent an infinite loop.