C++ Quiz 7 GRADE A QUESTION AND ANSWERS
1) Unlike regular variables, these can hold multiple values.
A) constants
B) named constants
C) arrays
D) floating-point variables
E) None of these - (correct answer)C
2) The individual values contained in array are known as ________.
A) parts
B) elements
C) numbers
D) constants
E) None of these - (correct 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 - (correct 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 - (correct answer)D
, 5) The statement:
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 - (correct 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 - (correct 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 - (correct answer)A
8) A two-dimensional array is like ________ put together.
1) Unlike regular variables, these can hold multiple values.
A) constants
B) named constants
C) arrays
D) floating-point variables
E) None of these - (correct answer)C
2) The individual values contained in array are known as ________.
A) parts
B) elements
C) numbers
D) constants
E) None of these - (correct 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 - (correct 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 - (correct answer)D
, 5) The statement:
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 - (correct 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 - (correct 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 - (correct answer)A
8) A two-dimensional array is like ________ put together.