1The function call is an executable statement.
T
2The function declaration requires the data types and identifiers for each parameter.
F
3The function declaration requires the data types for each parameter. (Including the identifiers are optional)
T
4The function call requires the data types and identifiers for each parameter.
F
5The function call requires the identifiers for each parameter.
T
6The first line of the function definition requires the data types and identifiers for each parameter.
T
7The function definition contains executable statements that perform the task of the function.
T
8The first line of the function definition terminates with a semicolon (;).
F
9The first line of the function definition does not terminate with a semicolon (;).
T
10The value of a local variable may be returned through a return statement of a user-defined function
T
11Parameters are defined as local variables in the function header (the first line of the function definition) and should not be re-defined within the local declaration section of the function.
T
12Additional local variables can be defined in the local declaration section of a function.
T
13A local variable cannot be referenced through its identifier outside of the function in which it is defined.
T
14A variable declared in the local declaration section of a function can have the same identifier as one of the parameters of the same function.
F
15A variable declared in the local declaration section of a function cannot have the same identifier as one of the parameters of the same function.
T
16Individual tasks in a program must be factored into individual user-defined functions.
T
17One benefit of user-defined functions is the potential reduction or elimination of duplicate code.
T
18A function assignment header for every user-defined function must be inserted immediately above the definition of the function it is documenting.
T
19Parameters being received by a function will be commented to the right of where they are defined.
F
20Parameters being received by a function will not be commented to the right of where they are defined.
T
21The return statement cannot contain an expression.
F
22The return statement can contain an expression.
T
23Data sent from the calling function to the function being called will be received in the same order in which it was passed.
T
24The individual task represented by a function should be testable apart from the rest of the program.
T
25The sequence in which the statements are executed in a program can be altered through the use of functions and function calls.
T
26A user-defined function may be called more than once in a program.
T
27The control of the program always returns from the called function to the main function.
F
28The control of the program will not always return from the called function to the main function if a function is calling another function within its own function.
T
29A function may return at most one value.
T
30The role of the main function is to coordinate the function calls and to establish the data needs for a program.
T
31Data sent from the calling function to the function being called will be received in the same order in which it was passed.
T
32A local variable can be referenced through its identifier outside of the function in which it is defined.
F
33Parameters are defined as local variables in the function header (the first line of the function definition) and should not be re-defined within the local declaration section of the function.
T
34The first line of the function definition terminates with a semicolon (;).
F
35The function call requires the data types and identifiers for each parameter.
F
36A function will always return exactly one value.
F
37A user-defined function may be called more than a single time in a program.
T
38The void in the following declaration statement would be optional: void printData(int, int, int);
F
39Individual tasks in a program may be factored into individual user-defined functions or retained within the main function when an additional user-defined function would be burdensome.
F
40The value of a local variable may be shared with the calling function through a return statement of a user-defined function.
T