Logic ch8 Flashcards
__________ arrays are two or more arrays that hold related data, and the elements are accessed using a common subscript.
parallel
Variables work well in many situations, but they have limitations
True
Some programming languages provide this specialized loop that steps through an array, retrieving the value of each element.
For Each
Unlike variables, arrays need to be initialized separately from the declaration.
F
In a sequential search algorithm, the Boolean variable used as a flag is initialized to true.
F
To calculate the total of the values in an array, a loop is used with an accumulator variable.
T
Two-dimensional arrays can be thought of as containing _________.
rows and columns
What type of error occurs when a loop iterates one time too few or one time too many?
Off-by-one error
The expression score[5] is pronounced
score sub 5
Multiple-dimensional arrays can be used to model data that occurs in multiple sets.
T
Array bounds checking happens at runtime, which is while the program is running.
T
Processing a large number of items in a(n) _____ is usually easier than processing a large number of items stored in separate variables.
array
Arrays, like variables, can only hold one value at a time.
F
What is the term used for the number inside the bracket that specifies the number of values that an array can hold?
size declarator
One of the advantages of two or more dimensional arrays is that the data values can be of two or more data types.
F