C++ Programming - Functions

Exercise : Functions - General Questions
11.
Where the default value of parameter have to be specified?
Function call
Function definition
Function prototype
Both B or C
Answer: Option
Explanation:
No answer description is available. Let's discuss.

12.
Which of the following statement is correct?
The default value for an argument cannot be function call.
C++ allows the redefinition of a default parameter.
Both A and B.
C++ does not allow the redefinition of a default parameter.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

13.
Which of the following statement is correct?
Only one parameter of a function can be a default parameter.
Minimum one parameter of a function must be a default parameter.
All the parameters of a function can be default parameters.
No parameter of a function can be default.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

14.
Which of the following statement is incorrect?
A default argument is checked for type at the time of declaration and evaluated at the time of call.
We can provide a default value to a particular argument in the middle of an argument list.
We cannot provide a default value to a particular argument in the middle of an argument list.
Default arguments are useful in situations where some arguments always have the same value.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

15.
Which of the following statement is correct?
Overloaded functions can accept same number of arguments.
Overloaded functions always return value of same data type.
Overloaded functions can accept only same number and same type of arguments.
Overloaded functions can accept only different number and different type of arguments.
Answer: Option
Explanation:
No answer description is available. Let's discuss.