Shared Flashcard Set

Details

Computer Science 1 Final
True or False
24
Computer Science
Undergraduate 1
05/07/2013

Additional Computer Science Flashcards

 


 

Cards

Term
False
Definition
When a function is called, flow of control moves to the function's prototype.
Term
True
Definition
A parameter is a special-purpose variable that is declared inside the parentheses of a function definition.
Term
False
Definition
A local variable and a global variable must not have the same name within the same program.
Term
True
Definition
A static variable that is defined within a function is initialized only once, the first time the function is called.
Term
True
Definition
It is possible for a function to have some parameters with default arguments and some without.
Term
False
Definition
A function's return data type must be the same as the function's parameter(s).
Term
True
Definition
One reason for using functions is to break programs into manageable units, or modules.
Term
False
Definition
You must furnish an argument with a function call.
Term
True
Definition
Global variables are initialized to zero by default.
Term
False
Definition
Local variables are initialized to zero by default.
Term
True
Definition
It is not considered good programming practice to declare all of your variables globally.
Term
True
Definition
You may use the exit() function to terminate a program, regardless of which control mechanism is executing.
Term
True
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
False
Definition
The statement

double money[25.00];
is a valid C++ array definition.
Term
False
Definition
An array initialization list must be placed on one single line.
Term
False
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
True
Definition
When you pass an array as an argument to a function, the function can modify the contents of the array.
Term
True
Definition
C++ limits the number of array dimensions to two.
Term
True
Definition
If you attempt to store data past an array's boundaries, it is guaranteed that the compiler will issue an error.
Term
True
Definition
An individual array element can be processed like any other type of C++ variable.
Term
False
Definition
Although two-dimensional arrays are a novel idea, there is no known way to pass one to a function.
Term
True
Definition
Each individual element of an array can be accessed by the array name and an element number, called a subscript.
Term
True
Definition
If an array is partially initialized, the uninitialized elements will be set to zero.
Term
False
Definition
A vector object automatically expands in size to accommodate the items stored in it.
Supporting users have an ad free experience!