COP1000C Quiz#5 T/F

25 July 2022
4.7 (114 reviews)
10 test answers

Unlock all answers in this set

Unlock answers (6)
question
False
answer
The loop control variable is initialized after entering the loop.
question
False
answer
In some cases, a loop control variable does not have to be initialized.
question
True
answer
You can either increment or decrement the loop control variable.
question
False
answer
An indefinite loop is a loop that never stops.
question
False
answer
When one loop appears inside another is called an indented loop.
question
True
answer
Forgetting to initialize and alter the loop control variable are common mistakes that programmers sometimes make.
question
True
answer
Every high-level computer programming language contains a while statement.
question
True
answer
Both the while loop and the for loop are examples of pretest loops.
question
False
answer
The safest action is to assign the value 1 to accumulators before using them.
question
True
answer
It is the programmer's responsibility to initialize all variables that must start with a specific value.