Built around real course units and objectives!
1) Unlike regular variables, these can hold multiple values.
A) constants
B) named constants
C) arrays
D) floating-point variables
E) None of these - Answer: C
2) The individual values contained in array are known as ________.
A) parts
B) elements
C) numbers
D) constants
E) None of these - Answer: B
3) To access an array element, use the array name and the element's ________.
A) data type
B) subscript
C) name
D) value
E) None of these - Answer: B
4) Which of the following is a valid C++ array definition?
A) int array[0];
B) float $payments[10];
C) void numbers[5];
D) int array[10];
E) None of these - Answer: D
APPHIA – Crafted with Care and Precision for Academic Excellence.
1
,APPHIA – Crafted with Care and Precision for Academic Excellence.
2
, Int grades[ ] = { 100, 90, 99, 80};
Shows an example of:
A) default arguments
B) an illegal array declaration
C) an illegal array initialization
D) implicit array sizing
E) None of these - Answer: D
6) By using the same ________ you can build relationships between data stored in two or
more arrays.
A) array name
B) data
C) subscript
D) arguments
E) None of these - Answer: C
7) The name of an array stores the ________ of the first array element.
A) memory address
B) value
C) element number
D) data type
E) None of these - Answer: A
8) A two-dimensional array is like ________ put together.
A) an array and a function
B) several identical arrays
C) two functions
APPHIA – Crafted with Care and Precision for Academic Excellence.
3