Chapter 9 - Control Flow: Repetition Flashcards

1
Q

When does a while loop stop repeating its block?

A

When the condition isn’t true.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When does a for loop stop repeating its block?

A

At the end of the string.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How many times can a while loop repeat at most?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How many times can a for loop repeat at most?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly