Quiz 7 C++GRADE A &A
Unlike regular variables, these can hold multiple values. - (correct answer)The correct
answer is: arrays
The individual values contained in array are known as ________. - (correct answer)The
correct answer is: elements
To access an array element, use the array name and the element's ________. - (correct
answer)The correct answer is: subscript
Which of the following is a valid C++ array definition? - (correct answer)The correct
answer is: int array[10];
The statement:
int grades [] = {100, 90, 99, 80};
shows an example of: - (correct answer)The correct answer is: implicit array sizing
By using the same ________ you can build relationships between data stored in two or
more arrays. - (correct answer)The correct answer is: subscript
The name of an array stores the ________ of the first array element. - (correct
answer)The correct answer is: memory address
A two-dimensional array is like ________ put together. - (correct answer)The correct
answer is: several identical arrays
A two-dimensional array can be viewed as ________ and ________. - (correct
answer)The correct answer is: rows, columns
, If you leave out the size declarator in an array definition: - (correct answer)The correct
answer is: you must furnish an initialization list
Which of the following is a valid C++ array definition? - (correct answer)The correct
answer is: int scores [10];
An element of a two-dimensional array is referred to by ________ followed by
________. - (correct answer)The correct answer is: the row subscript of the element,
the column subscript of the element
When writing functions that accept multi-dimensional arrays as arguments, ________
must be explicitly stated in the parameter list. - (correct answer)The correct answer is:
all but the first dimension
An array can store a group of values, but the values must be: - (correct answer)The
correct answer is: the same data type
An array's size declarator must be a ________ with a value greater than ________. -
(correct answer)The correct answer is: constant integer expression, zero
Subscript numbering in C++________. - (correct answer)The correct answer is: begins
with zero
Arrays may be ________ at the time they are ________. - (correct answer)The correct
answer is: initialized, declared
Given the following declaration, where is the value 77 stored in the scores array? -
(correct answer)The correct answer is: scores[2]
Unlike regular variables, these can hold multiple values. - (correct answer)The correct
answer is: arrays
The individual values contained in array are known as ________. - (correct answer)The
correct answer is: elements
To access an array element, use the array name and the element's ________. - (correct
answer)The correct answer is: subscript
Which of the following is a valid C++ array definition? - (correct answer)The correct
answer is: int array[10];
The statement:
int grades [] = {100, 90, 99, 80};
shows an example of: - (correct answer)The correct answer is: implicit array sizing
By using the same ________ you can build relationships between data stored in two or
more arrays. - (correct answer)The correct answer is: subscript
The name of an array stores the ________ of the first array element. - (correct
answer)The correct answer is: memory address
A two-dimensional array is like ________ put together. - (correct answer)The correct
answer is: several identical arrays
A two-dimensional array can be viewed as ________ and ________. - (correct
answer)The correct answer is: rows, columns
, If you leave out the size declarator in an array definition: - (correct answer)The correct
answer is: you must furnish an initialization list
Which of the following is a valid C++ array definition? - (correct answer)The correct
answer is: int scores [10];
An element of a two-dimensional array is referred to by ________ followed by
________. - (correct answer)The correct answer is: the row subscript of the element,
the column subscript of the element
When writing functions that accept multi-dimensional arrays as arguments, ________
must be explicitly stated in the parameter list. - (correct answer)The correct answer is:
all but the first dimension
An array can store a group of values, but the values must be: - (correct answer)The
correct answer is: the same data type
An array's size declarator must be a ________ with a value greater than ________. -
(correct answer)The correct answer is: constant integer expression, zero
Subscript numbering in C++________. - (correct answer)The correct answer is: begins
with zero
Arrays may be ________ at the time they are ________. - (correct answer)The correct
answer is: initialized, declared
Given the following declaration, where is the value 77 stored in the scores array? -
(correct answer)The correct answer is: scores[2]