Cpp Programming Quiz 171 – Which of the following statement is correct?

Question: 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.

Answer: Option A

Cpp Programming Quiz 178 – Which of the following statement is incorrect?

Question: Which of the following statement is incorrect?
[A]. Default arguments can be provided for pointers to functions.
[B]. A function can have all its arguments as default.[C]. Default argument cannot be provided for pointers to functions.
[D]. A default argument cannot be redefined in later declaration.

Answer: Option C

Cpp Programming Quiz 180 – Which of the following statement is incorrect?

Question: 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.

Answer: Option B