In the password loop, which line lets it end?
A program must keep asking until the right password is typed. Which loop fits?
If nothing inside the loop can change the condition, it runs forever.
Circle one: True False
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?