Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

multiple choice: 1. which of the following statements about function parameters

ID: 3609002 • Letter: M

Question

multiple choice:

1. which of the following statements about function parameters istrue?
    a. empty parameter lists are declared with thekeyword void.
    b. if there is only one parameter, the functionlist parentheses are not required.
    c. in the definition of a function, theparameters are known as actual parameters.
    d. parameters are separated by semicolons.
    e. the parameters in a function definition aredefined in the function's body (local declaration section).

2. which of the following statements about local variables isfalse?
    a. a local variable's value may be returnedthrough a return statement.
    b. local variables are defined inside afunction
    c. local variables cannot be referenced throughtheir identifiers outside the function.
    d. local variables may be initialized with aninitializer.
    e. local variables' names can be the same as thefunction's parameter names.

Explanation / Answer

please rate - thanks 1. which of the following statements about function parameters istrue?    a. empty parameter lists aredeclared with the keyword void.     b. if there is only one parameter, the functionlist parentheses are not required.     c. in the definition of a function, theparameters are known as actual parameters.     d. parameters are separated by semicolons.     e. the parameters in a function definition aredefined in the function's body (local declaration section). 2. which of the following statements about local variables isfalse? assuming you mean local tofunction     a. a local variable's value may be returnedthrough a return statement.   true     b. local variables are defined inside afunction                                        true     c. local variables cannot be referenced throughtheir identifiers outside thefunction.         true     d. local variables may be initialized with aninitializer.                                  true     e. local variables' names canbe the same as the function's parameter names.