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

1. Where the default value of parameter have to be specified? A. Function call B

ID: 3538814 • Letter: 1

Question

1. Where the default value of parameter have to be specified? A. Function call B. Function definition C. Function prototype D. Both B or C 2. Which of the following statement is correct? A. The default value for an argument cannot be function call. B. C++ allows the redefinition of a default parameter. C. Both A and B. D. C++ does not allow the redefinition of a default parameter. 3. Which of the following statement is correct? A. Only one parameter of a function can be a default parameter. B. Minimum one parameter of a function must be a default parameter. C. All the parameters of a function can be default parameters. D. No parameter of a function can be default. 4. Which of the following statement is incorrect? A. A default argument is checked for type at the time of declaration and evaluated at the time of call. B. We can provide a default value to a particular argument in the middle of an argument list. C. We cannot provide a default value to a particular argument in the middle of an argument list. D. Default arguments are useful in situations where some arguments always have the same value. 5. Which of the following statement is correct? A. Overloaded functions can accept same number of arguments. B. Overloaded functions always return value of same data type. C. Overloaded functions can accept only same number and same type of arguments. D. Overloaded functions can accept only different number and different type of arguments.

Explanation / Answer

C

D

C

B

A