download Mastguru Android App

Question Detail

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
Similar Questions :

1. Enumerators are stored by the compiler in ?

  • string
  • integer
  • float
  • any of above

2. Size of a char is ?

  • 1
  • 2
  • 3
  • 4

3. 37. Which of the following statements is false ?

  • Using typedef does not replace the standard C++ data type name with the new name
  • The new name defined by typedef, can be used as a type for another typedef
  • typedef defines new data types
  • None of the above

4. The antonym of constructor is ?

  • Creator
  • Distinct
  • Destroyer
  • Destructor

5. The process of deriving a class from another derived class is known as ?

  • single inheritance
  • dual inheritance
  • multiple inheritance
  • multilevel inheritance
Read more from - C++ Programming Questions Answers - Set 2
Post a comment