Chapter 6: Loops Flashcards

1
Q

body

A

All statements of a method or block.

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

loop

A

A sequence of instructions that is executed repeatedly.

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

off-by-one errors

A

A common programming error in which a value is one larger or smaller
than it should be.

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

symmetric bounds

A

Bounds that include the starting index and the ending index.

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

asymmetric bounds

A

Bounds that include the starting index but not the ending index.

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

sentinel

A

A value in input that is not to be used as an actual input value but to signal the end of input.

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

redirection

A

Linking the input or output of a program to a file instead of the keyboard or display.

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

counter

A

a variable that is initialized with 0 and incremented whenever there is a match

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

nested loop

A

A loop that is contained in another loop.

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

pseudorandom numbers

A

A number that appears to be random but is generated by a mathematical formula.

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

Loop and a half

A

A loop whose termination decision is neither at the beginning nor at the
end.

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