download Mastguru Android App

Question Detail

The major goal of inheritance in C++ is ?

  • To facilitate the reusability of code
  • To help modular programming
  • To facilitate the conversion of data types
  • To extend the capabilities of a class
Similar Questions :

1. The function used to define the task assigned to an operator is ?

  • Virtual function
  • Static function
  • Operator function
  • Friend function

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

  • single inheritance
  • dual inheritance
  • multiple inheritance
  • multilevel inheritance

3. A Variable __ of void type.

  • May be declared
  • Can be initialized
  • Cannot be intialized
  • Cannot be declared

4. && means ?

  • Logical OR
  • Bitwise OR
  • Logical AND
  • Bitwise AND

5. Which operators can not be overloaded ?

  • Binary operator
  • Ternary operator
  • Unary operator
  • All can be overloaded
Read more from - C++ Programming Questions Answers - Set 2
Post a comment