download Mastguru Android App

Question Detail

What among following is a generic class ?

  • Function Template
  • Class Template
  • Inherited Template
  • None of above
Similar Questions :

1. The advantage of declaring a virtual function as pure is
?

  • programs runs faster
  • early binding can be achieved
  • you force any derived class to define its own implementation
  • you can avoid making the class an abstract class

2. The default visibility mode while inheriting is ?

  • public
  • protected
  • private
  • may be any of above

3. Destructors are called ?

  • not defined
  • in any order
  • in the reverse order of constructor calls
  • in the same order of constructor calls

4. Which of the following keywords are used to control access to a class member ?

  • protected
  • switch
  • goto
  • for

5. Which of following valid option will not return a value in c++ ?

  • free
  • void
  • empty
  • null
Read more from - C++ Programming Questions Answers - Set 2
Post a comment