6 years ago in C++ Functions

Which of the following statement is correct?

[A] Constructors can have default parameters.
[B] Constructors cannot have default parameters.
[C] Constructors cannot have more than one default parameter.
[D] Constructors can have at most five default parameters.
Loading...
Next Question

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


Overall Stats

Attempted 108
Correct 31
Incorrect 16
Viewed 61

Answers

Guest
Guest
nabil mohamed
nabil mohamed - 1 month ago

nabil mohamed is saying Constructors can have default parameters. is correct answer

priyanka tile
priyanka tile - 1 year ago

priyanka tile from Nashik, India is saying Constructors can have default parameters. is correct answer

Tooba Mustafa
Tooba Mustafa - 1 year ago

Tooba Mustafa is saying Constructors can have default parameters. is correct answer

Saisha Shetty
Saisha Shetty - 1 year ago

Saisha Shetty is saying Constructors can have default parameters. is correct answer

indhuja indhuja
indhuja indhuja - 1 year ago

indhuja indhuja from Erode, India is saying Constructors cannot have more than one default parameter. is correct answer

Related Questions

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 function declaration is/are incorrect?

  • [A] int Sum(int a, int b = 2, int c = 3);
  • [B] int Sum(int a = 5, int b);
  • [C] int Sum(int a = 0, int b, int c = 3);
  • [D] Both B and C are incorrect.
  • [E] All are correct.

Which of the following statement is correct?

  • [A] C++ enables to define functions that take constants as an argument.
  • [B] We cannot change the argument of the function that that are declared as constant.
  • [C] Both A and B.
  • [D] We cannot use the constant while defining the function.

A friend function

  • [A] is declared as a friend & defined elsewhere in the program
  • [B] is always an inline function
  • [C] created objects without initialization
  • [D] May be a static member function of the class

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