Chapter 8 Quiz
an accompanying integer variable that holds the number of items that are actually stored in the array
A partially filled array is normally used with ________.
Pages
A three-dimensional array can be thought of as ________ of two-dimensional arrays
Subscripts
Access the individual elements in an array by using their ________.
subscript
Every element in an array is assigned a unique number known as a ________.
Two
How many subscripts do you need to access one element in a two-dimensional array?
Integer
In the following declaration, what is the data type of the elements of the array? Declare integer numbers [SIZE]
Array
Processing a large number of items in a(n) ________ is usually easier than processing a large number of items stored in separate variables.
For Each
Some programming languages provide this specialized loop that steps through an array, retrieving the value of each element.
Score sub 5
The expression score[5] is pronounced ________.
Rows and columns
Two-dimensional arrays can be thought of as containing ________.
One
What is the subscript for the data value 92 in the example given below? Declare integer score [5] = 83, 92, 78, 94, 71
Size declarator
What is the term used for the number inside the bracket that specifies the number of values that an array can hold?
searchValue
What is the term used for the value that is searched for in a search algorithm?
Off-by-one error
What type of error occurs when a loop iterates one time too few or one time too many?
array bounds checking
When working with arrays, most programming languages perform ________, which means they do not allow programs to use invalid subscripts.
Sequential
Which is the simplest search technique to use to find an item in an array?
The array itself and An integer that specifies the number of elements in the array
Which of the following arguments must be passed when passing an array as an argument?
Declare Real retailPrice[SIZE]
Which of the following array declarations would be best suited for storing the retail prices?
This is an array declaration and initialization.
Which of the following statement is true about the statement below?
Parallel
________ arrays are two or more arrays that hold related data, and the elements are accessed using a common subscript.