Chapter 20 The Two dimensional Array Specify The Variables

subject Type Homework Help
subject Pages 3
subject Words 586
subject Authors Diane Zak

Unlock document.

This document is partially blurred.
Unlock all pages and 1 million more documents.
Get Access
page-pf1
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.
page-pf2
12. You can only use the GetUpperBound method with two-dimensional arrays.
13. To accumulate the values stored in an array, you need to access each array element.
MULTIPLE CHOICE
1. A ____-dimensional array resembles a table in that the variables (elements) are in rows and columns.
a.
one
c.
three
b.
two
d.
four
2. The ____ in a two-dimensional array specify the variable’s row and column positions in the array.
a.
array scripts
c.
subscripts
b.
array pointers
d.
superscripts
3. Elements located in the first row in a two-dimensional array are assigned a row subscript of ____.
a.
0
c.
2
b.
1
d.
3
4. In a two-dimensional array, the variable’s row and column subscripts are separated by a ____.
a.
semicolon
c.
period
b.
comma
d.
dash
5. In a two-dimensional array, the variable’s row and column subscripts are specified in a set of ____
immediately following the array name.
a.
square brackets
c.
slashes
b.
braces
d.
parentheses
6. The first row subscript in a two-dimensional array is ____.
a.
0
c.
2
b.
1
d.
3
7. Within the individual ____ sections of a two-dimensional array, you enter one or more values
separated by commas.
a.
dimension
c.
initialValues
b.
typeValue
d.
defaultValues
page-pf3
8. If the outer loop of a nested loop controls the ____ subscript in a two-dimensional array, the array is
filled with data row by row.
a.
column
c.
outer
b.
row
d.
nested
9. An array’s ____ method returns an integer that indicates the highest subscript in the specified
dimension in the array.
a.
GetGreatestBound
c.
GetUpperBound
b.
GetHighestBound
d.
GetUpper
10. In the GetUpperBound syntax, ____ is an integer that specifies the dimension whose upper or lower
bound you want to retrieve.
a.
initialValue
c.
rowValue
b.
dimension
d.
columnValue
11. When GetUpperBound is used with a one-dimensional array, the dimension argument will always be
____.
a.
0
c.
2
b.
1
d.
3
12. When GetUpperBound is used with a two-dimensional array, the ____ in the dimension argument
represents the row dimension.
a.
0
c.
row
b.
1
d.
vert
13. When GetUpperBound is used with a two-dimensional array, the ____ in the dimension argument
represents the column dimension.
a.
0
c.
col
b.
1
d.
horz

Trusted by Thousands of
Students

Here are what students say about us.

Copyright ©2022 All rights reserved. | CoursePaper is not sponsored or endorsed by any college or university.