Activity 6.5.1.
The while loop is an “indefinite” loop because…
-
it loops through a known set of items so it runs through as many iterations as there are items in the set.
-
Incorrect! A while loop does not run through a known set of items. Try again.
-
it loops until some condition becomes True.
-
Incorrect! A while loop will keep iterating while the condition is True. Try again.
-
it loops until some condition becomes False.
-
Correct! A while loop continues until the condition is False. There is no definite answer to when that happens; it all depends on the incrementation.
-
it loops until it reaches a "break" statement.
-
Incorrect! A while loop can stop at a break statement, but so can any other loop. Try again.

