Exam 3 Programming Logic and
Design, Comprehensive Complete
Answers
All array elements have the same group ____. - ANSWER-name
___a data item means you override incorrect data by setting the variable to a specific
value. - ANSWER-Forcing
Forgetting to initialize and alter the loop control variable is a common mistake that
programmers sometimes make. - ANSWER-True
An array is a(n)___. - ANSWER-list
When a subscript is not within the range of acceptable subscripts, it is said to
be____. - ANSWER-out of bounds
In all languages, subscript values must be sequential___. - ANSWER-integers
The_ loop is particularly useful when processing arrays. - ANSWER-for
The loop control variable is initialized after entering the loop. - ANSWER-False
A mistake programmers often make with loops is that they___. - ANSWER-Neglect
to initialize the loop control variable prior to entering the loop body
The first step in a while loop is typically to ____. - ANSWER-Initialize the loop control
variable
Declaring a named constant makes code easier to modify and understand. -
ANSWER-True
Both the while loop and the for loop are examples of pretest loops. - ANSWER-True
In a ____, the loop body executes at least one time because the loop control variable
is not tested until after one iteration. - ANSWER-posttest loop
It is the programmer's responsibility to initialize all variables that must start with a
specific value. - ANSWER-
An indefinite loop is a loop that never stops. - ANSWER-False
Every array has a(n)___size. - ANSWER-finite
The amount by which a for loop control variable changes is often called a ____value.
- ANSWER-step
Design, Comprehensive Complete
Answers
All array elements have the same group ____. - ANSWER-name
___a data item means you override incorrect data by setting the variable to a specific
value. - ANSWER-Forcing
Forgetting to initialize and alter the loop control variable is a common mistake that
programmers sometimes make. - ANSWER-True
An array is a(n)___. - ANSWER-list
When a subscript is not within the range of acceptable subscripts, it is said to
be____. - ANSWER-out of bounds
In all languages, subscript values must be sequential___. - ANSWER-integers
The_ loop is particularly useful when processing arrays. - ANSWER-for
The loop control variable is initialized after entering the loop. - ANSWER-False
A mistake programmers often make with loops is that they___. - ANSWER-Neglect
to initialize the loop control variable prior to entering the loop body
The first step in a while loop is typically to ____. - ANSWER-Initialize the loop control
variable
Declaring a named constant makes code easier to modify and understand. -
ANSWER-True
Both the while loop and the for loop are examples of pretest loops. - ANSWER-True
In a ____, the loop body executes at least one time because the loop control variable
is not tested until after one iteration. - ANSWER-posttest loop
It is the programmer's responsibility to initialize all variables that must start with a
specific value. - ANSWER-
An indefinite loop is a loop that never stops. - ANSWER-False
Every array has a(n)___size. - ANSWER-finite
The amount by which a for loop control variable changes is often called a ____value.
- ANSWER-step