Term
|
Definition
When a function is called, flow of control moves to the function's prototype. |
|
|
Term
|
Definition
A parameter is a special-purpose variable that is declared inside the parentheses of a function definition. |
|
|
Term
|
Definition
A local variable and a global variable must not have the same name within the same program. |
|
|
Term
|
Definition
A static variable that is defined within a function is initialized only once, the first time the function is called. |
|
|
Term
|
Definition
It is possible for a function to have some parameters with default arguments and some without. |
|
|
Term
|
Definition
A function's return data type must be the same as the function's parameter(s). |
|
|
Term
|
Definition
One reason for using functions is to break programs into manageable units, or modules. |
|
|
Term
|
Definition
You must furnish an argument with a function call. |
|
|
Term
|
Definition
Global variables are initialized to zero by default. |
|
|
Term
|
Definition
Local variables are initialized to zero by default. |
|
|
Term
|
Definition
It is not considered good programming practice to declare all of your variables globally. |
|
|
Term
|
Definition
You may use the exit() function to terminate a program, regardless of which control mechanism is executing. |
|
|
Term
|
Definition
The amount of memory used by an array depends upon the array's data type and the number of elements in the array. |
|
|
Term
|
Definition
The statement
double money[25.00]; is a valid C++ array definition. |
|
|
Term
|
Definition
An array initialization list must be placed on one single line. |
|
|
Term
|
Definition
Assume array1 and array2 are the names of arrays. To assign the contents of array2 to array1, you would use the following statement. |
|
|
Term
|
Definition
When you pass an array as an argument to a function, the function can modify the contents of the array. |
|
|
Term
|
Definition
C++ limits the number of array dimensions to two. |
|
|
Term
|
Definition
If you attempt to store data past an array's boundaries, it is guaranteed that the compiler will issue an error. |
|
|
Term
|
Definition
An individual array element can be processed like any other type of C++ variable. |
|
|
Term
|
Definition
Although two-dimensional arrays are a novel idea, there is no known way to pass one to a function. |
|
|
Term
|
Definition
Each individual element of an array can be accessed by the array name and an element number, called a subscript. |
|
|
Term
|
Definition
If an array is partially initialized, the uninitialized elements will be set to zero. |
|
|
Term
|
Definition
A vector object automatically expands in size to accommodate the items stored in it. |
|
|