mmmm – Flashcards

Unlock all answers in this set

Unlock answers
question
In a ____, the loop body might never execute because the question controlling the loop might be false the first time it is asked.
answer
c. pretest loop Correct
question
The first step in a while loop is typically to ____.
answer
a. initialize the loop control variable Correct
question
In some cases, a loop control variable does not have to be initialized.
answer
False
question
Usually, when you create nested loops, each loop has its own ____.
answer
entrance condition
question
You can either increment or decrement the loop control variable.
answer
true
question
A comparison is correct only when the correct ____ and operator are used.
answer
operands
question
A loop within another loop is known as a ____ loop.
answer
nested
question
The ____ loop provides three actions in one compact statement.
answer
for
question
In a ____, the loop body executes at least one time because the loop control variable is not tested until after one iteration.
answer
stub
question
A mistake programmers often make with loops is that they ____.
answer
b. neglect to initialize the loop control variable prior to entering the loop body
question
ANo ____ is any numeric variable you use to count the number of times an event has occurred.
answer
counter
question
When one loop appears inside another is is called an indented loop.
answer
False
question
Business reports that list only totals, with no individual item details, are called ____.
answer
SUmmary Report
question
The first step in a while loop is typically to ____.
answer
c. initialize the loop control variable Correct
question
The amount by which a for loop control variable changes is often called a ____ value.
answer
step
question
A mistake programmers often make with loops is that they ____.
answer
c. include statements inside the loop that belong outside the loop
question
A ____ loop executes a predetermined number of times.
answer
terminal
question
Once your logic enters the body of a structured loop, ____.
answer
entire loop must be executed
question
The last step in a while loop is usually to ____.
answer
b. increment the loop control variable
Get an explanation on any task
Get unstuck with the help of our AI assistant in seconds
New