Chapter 9 - Control Flow: Repetition Flashcards
1
Q
When does a while loop stop repeating its block?
A
When the condition isn’t true.
2
Q
When does a for loop stop repeating its block?
A
At the end of the string.
3
Q
How many times can a while loop repeat at most?
A
4
Q
How many times can a for loop repeat at most?
A