ITP-100 Unit 3 test Set 2

STUDY
PLAY
Processing a large number of items in a(n) ________ is usually easier than processing a large number of items stored in separate variables.
a. Constant
b. Variable
c. Array
d. Loop
e. None of these
Array
Access the individual elements in an array by using their ________.
a. Sizes
b. Numbers
c. Integers
d. Subscripts
e. None of these
Subscripts
Some programming languages provide this specialized loop that steps through an array, retrieving the value of each element.
a. While Each
b. For Each
c. Repeat Get
d. Step Loop
e. None of these
For Each
Which of the following arguments must be passed when passing an array as an argument?
a. The array itself
b. An integer that specifies the number of elements in the array
c. The data type of the array
d. The array itself and An integer that specifies the number of elements in the array
e. The array itself and The data type of the array
The array itself and An integer that specifies the number of elements in the array
How many subscripts do you need to access one element in a two-dimensional array?
a. One
b. Two
c. Three
d. Four
e. None of these
Two
A three-dimensional array can be thought of as ________ of two-dimensional arrays.
a. Rows
b. Columns
c. Lines
d. Pages
e. None of these
Pages
Every element in an array is assigned a unique number known as a ________.
a. subscript
b. integer
c. character
d. number
e. None of these
subscript
What is the subscript for the data value 92 in the example given below?
a. One
b. Two
c. A
d. B
e. None of these
One
The expression score[5] is pronounced ________.
a. Score sub 4
b. Score sub 5
c. Score of 5
d. Score of 4
e. Score 5
Score sub 5
When working with arrays, most programming languages perform ________, which means they do not allow programs to use invalid subscripts.
a. array bounds checking
b. buffer overrun protection
c. bitwise data execution
d. subscript binding
e. None of these
array bounds checking
Subscripts are used to identify specific elements in an array.
True
False
True
If array name contains a list of names, name[1] is the name of the first person.
True
False
False
Variables work well in many situations, but they have limitations.
True
False
True
YOU MIGHT ALSO LIKE...