Chapter 6
The value in ________ local variable is retained between function calls.
a static
In a function call, in addition to the name of the function, you are required to furnish ________.
an identifier name or constant for each argument
When more than one function has the same name they are called ________ functions.
overload
In a function prototype, in addition to the name of the function, you are required to furnish ________.
A and C, but not B. Answers: a data type for each parameter the data type of the return value
When a function just needs to use a copy of an argument passed to it, the argument should normally be passed ________.
By value
A function can have zero to many parameters, and it can have ________ return value(s).
Either zero or one
A ________ variable is defined inside the body of a function and is not accessible outside that function.
Local
Breaking a program up into a set of manageable sized functions is called ________ programming.
Modular
In a function header, in addition to the name of the function, you are required to furnish ________.
All of the above Answers: an identifier name for each parameter a data type for each parameter the data type of the return value
A function ________ includes the statements that make up the function.
Definition
A function other than the main function is executed ________
Whenever it is called
Functions are ideal for use in menu-drive programs. When a user selects a menu item, the program can ________ an appropriate function to carry out the user's choice.
call
The ________ function causes the entire program to terminate, regardless of which function or control mechanism is executing.
exit ()
When used as a parameter, a ________ variable allows a function to access and modify the original argument passed to it.
reference
The ________ statement causes a function to end and the flow of control to move back to the point where the function call was made.
return
A void function is one that ________.
returns no value
Two or more functions may have the same name provided that ________.
their parameter lists are different