Programming Final CH.7

for loop
An array can easily be stepped through by using a
T OR F: Assume array1 and array2 are the names of arrays. To assign the contents
of array2 to array1, you would use the following statement.

array1 = array2;

We will write a custom essay sample on
Programming Final CH.7
or any similar topic only for you
Order now
To access an array element, use the array name and the element’s
int scores [10];
Which of the following is a valid C++ array definition?
implicit array sizing
The statement

int grades[ ] = { 100, 90, 99, 80};

shows an example of

T OR F: The statement

double money[25.00];

is a valid C++ array definition.

Unlike regular variables, these can hold multiple values.
This vector function returns the number of elements in a vector.
This vector function returns true if the vector has no elements.
null terminator
The ______________ is automatically appended to a character array when it is initialized with a string constant.
rows, columns
A two-dimensional array can be viewed as ___________ and _____________.
What will the following code display?

int numbers[4] = { 99, 87 };
cout << numbers[3] << endl;

string names[5];
An array of string objects that will hold 5 names would be declared using which statement?
memory address
The name of an array stores the __________ of the first array element.
initialized, declared
Arrays may be ___________ at the time they are __________.
T OR F: Each individual element of an array can be accessed by the array name and an element number, called a subscript.
T OR F: A vector object automatically expands in size to accommodate the items stored in it.
T OR F: An individual array element can be processed like any other type of C++ variable.
T OR F: C++ limits the number of array dimensions to two.
To pass an array as an argument to a function, pass the _________ of the array.
What is the last legal subscript that can be used with the following array?

int values[5];

What will the following code display?

int numbers[] = {99, 87, 66, 55, 101 };
cout << numbers[3] << endl;

It creates a vector object with a starting size of 10 and all elements
are initialized with the value 2.
What does the following statement do?

vector v(10, 2);

vector v;
Which statement correctly defines a vector object for holding integers?
constant integer expression, zero
An array’s size declarator must be a(n)_________ with a value greater than _________.
all but the first dimension
When writing functions that accept multi-dimensional arrays as arguments, _______________ must be explicitly stated in the parameter list.
Charter One, Pentagon Federal Credit Union, and Boeing Employees Credit Union, are all primarily:
Federal Reserve Notes.
The paper money used in the United States is:

Hi there, would you like to get such a paper? How about receiving a customized one? Check it out