Ch. 5.5: The do while Loop Flashcards

1
Q

What is a do-while loop?

A

The do-while loop is a posttest loop. This means it does not test its expression until it has completed an iteration. As a result, the do-while loop always performs at least one iteration, even if the expression is false to begin with.

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

What is a self-controlled loop?

A

It allows the user to decide the number of iterations.

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