Chapter 4 - Python
False
(True / False) A condition-controlled loop always repeats a specific number of times
True
(True / False) In a nested loop, the inner loop goes through all of its iterations for every single iteration of the outer loop
False
(True / False) It is not necessary to initialize accumulator variables
True
(True / False) The following statement subtracts 1 from x: x = x -1
True
(True / False) The while loop is a preset loop
count
A _______ -controlled loop repeats a specific number of times
condition
A _______ -controlled loop uses a true/false condition to control the number of times that it repeats.
sentinel
A(n) _______ 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.
accumalator
A(n) _______ variable keeps running total.
infinite
A(n) ________ loop has no way of ending and repeats until the programs is interrupted.
garbage in, garbage out
GIGO stands for
priming read
The input operation that appears just before a validation loop is known as the
input
The integrity of a program's output is only as good as the integrity of the program's
pretest
The while loop is a _______ type of loop.
error traps
Validation loops are known as
iteration
Each repetition of a loop is known as a(n) _______.
augmented assignment
The -= operator is an example of a(n) ________ operator.
