Quiz4 Flashcards

1
Q

Many loop control variable values are altered by ____, or adding to them.

A

incrementing

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

Collectively, break and continue are ____ statements, because they cause program logic to “jump” out of the normal flow of control in a logical structure.

A

jump

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

If you ever find yourself in the midst of executing an infinite loop, you can break out by holding down the ____ key and pressing the C key or the Break (Pause) key.

A

Ctrl

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

You begin a for statement with the keyword ____ followed by a set of parentheses.

A

for

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

A loop for which the number of iterations is predetermined is called a(n) ____ loop.

A

definite

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

The ____ loop checks at the bottom of the loop after one repetition has occurred.

A

do

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

When you use a loop within a loop, you should always think of the ____ loop as the all-encompassing loop.

A

outer

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

Some loops are controlled by reducing, or ____, a variable and testing whether the value remains greater than some benchmark value.

A

decrementing

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

A(n) ____ loop is one in which the loop control variable is tested after the loop body executes.

A

posttest

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

With a ____ loop, you can indicate the starting value for the loop control variable, the test condition that controls loop entry, and the expression that alters the loop control variable, all in one convenient place.

A

for

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