Built around real course units and objectives!
1) This is a collection of statements that performs a specific task.
A) infinite loop
B) variable
C) constant
D) function
E) None of these - Answer: D
2) A function ________ contains the statements that make up the function.
A) definition
B) prototype
C) call
D) expression
E) parameter list - Answer: A
3) A function can have zero to many parameters, and it can return this many values.
A) zero to many
B) no
C) only one
D) a maximum of ten
E) None of these - Answer: C
4) A function is executed when it is:
A) defined
B) prototyped
C) declared
D) called
E) None of these - Answer: D
APPHIA – Crafted with Care and Precision for Academic Excellence.
1
,5) In a function header, you must furnish:
A) data type(s) of the parameters
B) data type of the return value
C) the name of function
D) names of parameter variables
E) All of these - Answer: E
APPHIA – Crafted with Care and Precision for Academic Excellence.
2
,A) call
B) prototype
C) define
D) declare
E) None of these - Answer: A
7) This type of variable is defined inside a function and is not accessible outside the
function.
A) global
B) reference
C) local
D) counter
E) None of these - Answer: C
8) The value in this type of local variable persists between function calls.
A) global
B) internal
C) static
D) dynamic
E) None of these - Answer: C
9) These types of arguments are passed to parameters automatically if no argument is
provided in the function call.
A) Local
B) Default
C) Global
D) Relational
E) None of these - Answer: B
APPHIA – Crafted with Care and Precision for Academic Excellence.
3
, 10) When used as parameters, these types of variables allow a function to access the
parameter's original argument.
A) reference
B) floating-point
C) counter
D) undeclared
E) None of these - Answer: A
APPHIA – Crafted with Care and Precision for Academic Excellence.
4