7 years ago in C++ Functions

A static function

[A] should be called when an object is destroyed
[B] is closely connected with an individual object of a class
[C] can be called using the class name and function
[D] is used when a dummy object must be created
Loading...
Next Question

Overall Stats

Attempted 104
Correct 13
Incorrect 15
Viewed 76

Answers

Guest
Guest
Sudheeksha Mineni
Sudheeksha Mineni - 1 month ago

Sudheeksha Mineni is saying can be called using the class name and function is correct answer

Muhammad Muneeb
Muhammad Muneeb - 2 months ago

Muhammad Muneeb is saying is closely connected with an individual object of a class is correct answer

SHERWYN JOHN
SHERWYN JOHN - 3 months ago

SHERWYN JOHN is saying can be called using the class name and function is correct answer

Sudarshan Rajagopalan
Sudarshan Rajagopalan - 3 months ago

Sudarshan Rajagopalan is saying is closely connected with an individual object of a class is correct answer

Sindhu S
Sindhu S - 3 months ago

Sindhu S is saying is used when a dummy object must be created is correct answer

Related Questions

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.

Using turbo C++ library function can ?

  • [A] color any closed figure
  • [B] draw lines and circles
  • [C] write in variety of fonts and sizes
  • [D] all of above

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

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)