Chapter 5: Repetition Structures Flashcards
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
condition
A ___ controlled loop repeats a specific number of times.
a. Boolean
b. condition
c. decision
d. count
count
Each repetition of a loop is known as an
a. cycle
b. revolution
c. orbit
d. iteration
iteration
The while loop is a ___ type of loop
a. pretest
b. posttest
c. prequalified
d. post iterative
pretest
The Do-While loop is a __ type of loop.
a. pretest
b. posttest
c. prequalified
d. post iterative
posttest
The for loop is a ___ type of loop.
a. pretest
b. posttest
c. prequalified
d. post iterative
pretest
An__ loop has no way of ending and repeats until the program is interrupted.
a. indeterminate
b. interminable
c. infinite
d. timeless
infinite
A ___ loop always executes at least once.
a. pretest
b. posttest
c. condition-controlled
d. count-controlled
posttest
A___ variable keeps the running total
a. sentinel
b. sum
c. total
d. accumulator
accumulator
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
sentinel