Chapter 20: Table Tennis, Anyone? (Two-Dimensional Arrays)
TRUE/FALSE
1. The most commonly used arrays in business applications are one-dimensional and two-dimensional.
2. You can visualize a one-dimensional array as a table of variables.
3. You can determine the number of elements in a two-dimensional array by multiplying the number of
its rows by the number of its columns.
4. Each element in a two-dimensional array is identified by a unique combination of two subscripts that
the computer assigns to the element when the array is created.
5. Elements in the second row of a two-dimensional array are assigned a row subscript of 2.
6. Elements located in the first column in a two-dimensional array are assigned a column subscript of 1.
7. You refer to each element in a two-dimensional array by the array’s name and the element’s row and
column subscripts.
8. The number of rows in a two-dimensional array is always one number less than the highest row
subscript.
9. The variables (elements) in a two-dimensional array can be used just like any other variables.
10. If you need to access each element in a two-dimensional array, you typically do so using an outer loop
and a nested loop.
11. If the outer loop of a nested loop controls the row subscript in a two-dimensional array, the array is
filled with data column by column.