1/13
Looks like no tags are added yet.
The amount of memory used by an array depends on the array's data type and the number of elements in the array.
true
An array initialization must be all on one line.
False
When you pass an array as an argument to a function, the function can modify the contents of the array.
True
C++ limits the number of array dimensions to two
False
If you attempt to store data past an array's boundaries, it is guaranteed to cause a compiler error.
False
An individual array element can be processed like any other type of C++ variable
True
In C++11 you cannot use a range-based for loop to modify the contents of an array unless you declare the range variable as a reference variable.
True
In C++11 the range-based for loop is best used in situations where you need the element subscript for some purpose.
False
Although two-dimensional arrays are a novel idea, there is no known way to pass one to a function.
False
Each individual element of an array can be accessed by the array name and the element subscript.
True
If an array is partially initialized, the uninitialized elements will be set to zero.
True
The following statement is a valid C++ definition:
double money[25.00];
False
Assume array1 and array2 are the names of two arrays. To assign the contents of array2 to
array1, you would use the following statement:
array1 = array2;
False
A vector object automatically expands in size to accommodate the items stored in it.
True