Chapter 8
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.
False
If array name contains a list of names, name[1] is the name of the first person.
False
Unlike variables, arrays need to be initialized separately from the declaration.
False
Some programming languages provide this specialized loop that steps through an array, retrieving the value of each element.
For Each
In the following declaration, what is the data type of the elements of the array? Declare Integer numbers [SIZE]
Integer
A three-dimensional array can be thought of as ________ of two-dimensional arrays.
Pages
________ arrays are two or more arrays that hold related data, and the elements are accessed using a common subscript.
Parallel
Two-dimensional arrays can be thought of as containing ________.
Rows and Columns
Which is the simplest search technique to use to find an item in an array?
Sequential
What is the term used for the number inside the bracket that specifies the number of values that an array can hold?
Size Declarator
Access the individual elements in an array by using their ________
Subscripts
Array bounds checking happens at runtime, which is while the program is running.
True
Multiple-dimensional arrays can be used to model data that occurs in multiple sets.
True
Subscripts are used to identify specific elements in an array.
True
The first step in calculating the average of the values in an array is to get the total of the values.
True
To calculate the total of the values in an array, a loop is used with an accumulator variable.
True
Variables work well in many situations, but they have limitations.
True
When processing the data in a two-dimensional array, each element has two subscripts
True
A partially filled array is normally used with ________.
an accompanying integer variable that holds the number of items that are actually stored in the array