6 years ago in C++ Functions

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.
Loading...
Next Question

Create your Digital Resume For FREE on your name's sub domain "yourname.wcard.io". Register Here!


Overall Stats

Attempted 101
Correct 13
Incorrect 27
Viewed 61

Answers

Guest
Guest
Preety Pandey
Preety Pandey - 1 month ago

Preety Pandey is saying A default argument cannot be redefined in later declaration. is correct answer

priyanka tile
priyanka tile - 9 months ago

priyanka tile from Nashik, India is saying A function can have all its arguments as default. is correct answer

indhuja indhuja
indhuja indhuja - 1 year ago

indhuja indhuja from Erode, India is saying A function can have all its arguments as default. is correct answer

Sarita Nauriya
Sarita Nauriya - 1 year ago

Sarita Nauriya from Hyderabad, India is saying A default argument cannot be redefined in later declaration. is correct answer

Arjunasor Syiem
Arjunasor Syiem - 1 year ago

Arjunasor Syiem from Shillong, India is saying A function can have all its arguments as default. is correct answer

Related Questions

Which of the following type of function is an ideal candidate for being declared inline ?

  • [A] A function that is small and is not called frequently
  • [B] A function that is small and is called frequently
  • [C] A function that is not small and is not called frequently
  • [D] A function that is not small and is called frequently

A friend function can be used to ?

  • [A] avoid arguments between classes
  • [B] allow access to classes whose source code is unavailable
  • [C] allow one class to access an unrelated class
  • [D] increase the versatility of an overloaded operator

Which of the following statement will be correct if the function has three arguments passed to it?

  • [A] The trailing argument will be the default argument.
  • [B] The first argument will be the default argument.
  • [C] The middle argument will be the default argument.
  • [D] All the argument will be the default argument.

Overloaded function

  • [A] are a group of functions,with the same value
  • [B] all have the same number and types of arguments
  • [C] make life simpler for programmers
  • [D] may fail unexpectedly due to stress

Dividing a program into functions

  • [A] is the key to object oriented programming
  • [B] makes the program easier to conceptualize
  • [C] makes the program run faster
  • [D] both (B) and (C)