Chapter 5: Repetition Structures Flashcards

1
Q

A __ controlled loop uses a true/false condition to control the number of times that it repeats

a. Boolean
b. condition
c. decision
d. count

A

condition

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

A ___ controlled loop repeats a specific number of times.

a. Boolean
b. condition
c. decision
d. count

A

count

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

Each repetition of a loop is known as an

a. cycle
b. revolution
c. orbit
d. iteration

A

iteration

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

The while loop is a ___ type of loop

a. pretest
b. posttest
c. prequalified
d. post iterative

A

pretest

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

The Do-While loop is a __ type of loop.

a. pretest
b. posttest
c. prequalified
d. post iterative

A

posttest

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

The for loop is a ___ type of loop.

a. pretest
b. posttest
c. prequalified
d. post iterative

A

pretest

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

An__ loop has no way of ending and repeats until the program is interrupted.

a. indeterminate
b. interminable
c. infinite
d. timeless

A

infinite

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

A ___ loop always executes at least once.

a. pretest
b. posttest
c. condition-controlled
d. count-controlled

A

posttest

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

A___ variable keeps the running total

a. sentinel
b. sum
c. total
d. accumulator

A

accumulator

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

A __ is a special value that signals when there are no more items from a list of items to be processed. This value cannot be mistaken as an item from the list.

a. sentinel
b. flag
c. signal
d. accumulator

A

sentinel

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