A game loop runs while lives > 0. Which line lets it end?
A quiz must keep asking one question until the answer is right. Which loop fits?
If nothing inside the loop can change the condition, it runs forever.
En entourer un : Vrai Faux
Read sensor data until it reports ready. The wait length is unknown. Which fits?
Print every name in a class list of known size. Which loop fits and why?
A while loop counts down but never stops. What is the likely fault?
A student waits for a password with a for loop over a huge fixed range, hoping it is enough. Why is while better?
n starts at 4. While n is above 0, the loop prints n then sets n to n minus 1. How many prints?