AND ANSWERS
A(n) ________ structure causes a set of statements to execute repeatedly. - Answer-
repetition
A(n) ________-controlled loop causes a statement or set of statements to repeat as
long as the condition is true. - Answer-condition
The while loop is known as a(n) _______ loop because it tests the condition before
performing an iteration. - Answer-pretest
A(n) ________ loop usually occurs when the programmer does not include code inside
the loop that makes the test condition false. - Answer-infinite
In Python, you would use the _______ statement to write a count-controlled loop. -
Answer-for
A(n) _______ total is a sum of numbers that accumulates with each iteration of the loop
- Answer-running
A(n) ________ is a special value that marks the end of a sequence of items - Answer-
sentinel
The acronym ______ refers to the fact that the computer cannot tell the difference
between good data and bad data. - Answer-GIGO
A(n) ________ validation loop is sometimes called an error trap or an error handler. -
Answer-input
The _____ function is a built-in function that generates a list of integer values. - Answer-
range
Reducing duplication of code is one of the advantages of using a loop structure. -
Answer-True
A good way to repeatedly perform an operation is to write the statements for the task
once and then place the statements in a loop that will repeat as many times as
necessary. - Answer-True
The first line in a while loop is referred to as the condition clause. - Answer-False