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

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

Question: Which of the following statement is incorrect?
[A]. The default value for an argument can be a global constant.
[B]. The default arguments are given in the function prototype.[C]. Compiler uses the prototype information to build a call, not the function definition.
[D]. The default arguments are given in the function prototype and should be repeated in the function definition.

Answer: Option D