Chapter 8

25 July 2022
4.7 (114 reviews)
20 test answers

Unlock all answers in this set

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