5 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 131
Correct 31
Incorrect 20
Viewed 80

Answers

Guest
Guest
Tooba Mustafa
Tooba Mustafa - 1 month ago

Tooba Mustafa is saying can be called using the class name and function is correct answer

Saisha Shetty
Saisha Shetty - 1 month ago

Saisha Shetty is saying can be called using the class name and function is correct answer

Tanya Sabarwal
Tanya Sabarwal - 1 month ago

Tanya Sabarwal from Hyderabad, India is saying is closely connected with an individual object of a class is correct answer

indhuja indhuja
indhuja indhuja - 4 months ago

indhuja indhuja from Erode, India is saying can be called using the class name and function is correct answer

Lakmee Lakshana Hewapathirana
Lakmee Lakshana Hewapathirana - 4 months ago

Lakmee Lakshana Hewapathirana from Nittambuwa, Sri Lanka is saying can be called using the class name and function is correct answer

Related Questions

Which of the following parameter passing mechanism is/are supported by C++ but not in C?

  • [A] Pass by value
  • [B] Pass by reference
  • [C] Pass by value result
  • [D] All of the above

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.

What is true about inline functions ?

  • [A] It's a compulsion on the compiler to make function inline
  • [B] It's a request to the compiler to make te function inline
  • [C] It's the indication to the compiler that the function is recursive
  • [D] It's the indication to the compiler that the function is member function

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 member function of class cannot modify its objects attributes ?

  • [A] friend functions
  • [B] Private member functions
  • [C] Constant member functions
  • [D] Static member functions