An infinite loop can occur in a while loop when the ________ never becomes false.

  • condition
  • counter
  • index
  • expression
An infinite loop can occur in a while loop when the condition specified in the loop's condition expression never becomes false. If the condition is always true, the loop will continue executing indefinitely, leading to an infinite loop. Careful attention should be paid to the condition to ensure that it eventually becomes false, allowing the loop to terminate.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *