Choose the correct answer
1. A void function _____.
a. contains no statements
b. requires no parameters
c. returns nothing
d. has no name
2. The value used in a functions’ return statement must _____.
a. be numeric
b. be a variable
c. match the data type used before the method name in the header
d. all of the above
3. When a function definition appears above the main () function, you must have a (n) ____ above the
main () function.
a. argument
b. value parameter
c. prototype
d. none of the above
1. A void function _____.
c. returns nothing
2. The value used in a functions’ return statement must _____.
c. match the data type used before the method name in the header
3. When a function definition appears above the main () function, you must have a (n) ____ above the
main () function.
c. prototype
Comments
Leave a comment