You are on page 1of 4

Score for this attempt: 10 out of 10

Submitted Feb 20 at 8:16pm


This attempt took 22 minutes.

1 / 1 pts
Question 1

A loop that executes as long as a particular condition exists is called


a(n) ________ loop.

infinite

count-controlled

conditional

relational

1 / 1 pts
Question 2

A(n) ________ is a special value that cannot be mistaken as a member


of a list of data items and signals that there are no more data items to
be processed.

accumulator

sentinel

delimiter

terminator

1 / 1 pts
Question 3

In all but very rare cases, loops must contain, within themselves
________.

nested loops
a way to terminate

arithmetic operators

nested decision structures

1 / 1 pts
Question 4

The ________ loop is ideal in situations where the exact number of


iterations is known.

for

while

do-while

posttest

1 / 1 pts
Question 5

The ________ loop is ideal in situations where you always want the
loop to iterate at least once.

for

while

do-while

posttest

1 / 1 pts
Question 6
If a loop does not contain, within itself, a valid way to terminate, it is
called a(n) ________ loop

for

while

do-while

infinite

1 / 1 pts
Question 7

Each repetition of a loop is known as a(n) ________.

iteration

cycle

execution

lap

1 / 1 pts
Question 8

Which of the following are pre-test loops?

while, for, do-while

while, do-while

while, for

for, do-while
1 / 1 pts
Question 9

The variable that controls the number of times a loop iterates is known
as a ________.

counter variable

loop control variable

running total

decrement variable

1 / 1 pts
Question 10

The ________ loop allows the user to decide on the number of


iterations.

counter controlled loop

dynamically executed loop

user controlled loop

infinite loop

Quiz Score: 10 out of 10

You might also like