Chapter 6
definition
A function ________ contains the statements that make up the function.
called
A function is executed when it is:
double
What is the data type of the function's parameter variable? int myFunction(double);
int
What is the data type of the function's return value? int myFunction(double);
True
You may use the exit( ) function to terminate a program, regardless of which control mechanism is executing.
False
You must furnish an argument with a function call.
True
Global variables are initialized to zero by default.
computeValue(10);
Here is the header for a function named computeValue: void computeValue(int value); Which of the following is a valid call to the function?
data type(s) of the parameters data type of the return value the name of function names of parameter variables
In a function header, you must furnish:
document
It is a good programming practice to ________ your functions by writing comments that describe what they do.
False
Local variables are initialized to zero by default.
function
This is a collection of statements that performs a specific task.
function call
This is a statement that causes a function to execute.
return
This statement causes a function to end.
local
This type of variable is defined inside a function and is not accessible outside the function.