New ! Computer Science MCQ Practise Tests



Inheritance Two Marks Questions

11th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:45:00 Hrs
Total Marks : 30
    15 x 2 = 30
  1. What is inheritance?

  2. What is a base class?

  3. In what multilevel and multiple inheritance differ though both contains many base class?

  4. What is the difference between public and private visibility mode?

  5. List the types of inheritance.

  6. Write the types of Inheritance for the following statement.
    (i) When a derived class inherits from many base classes.
    (ii) When more than one derived classes are created from a single base class.
    (iii) Multilevel +Multiple Inheritance
    (iv) The transitive nature of inheritance
    (v) Class student {public: int roll no;};
    Class student : public student {public : int marks}; is an example of

  7. Write the syntax of creating derived class.

  8. Fill the following table

    Base class member access specifier Type of Inheritance
    Private Protected Public
    Public Private (ii) Public
    (i) Private Protected (iv)
    Private Private (iii) Private
  9. How the size of derived class object is calculated?

  10. What is this pointer? When it is useful?

  11. When the constructor of base class will automatically invoked?

  12. Write the main advantages of Inheritance.

  13. If a base class and a derived class each include a member function with the same name and arguments, which member function will be called by the object of the derived class if the scope resolution operator is not used?

  14. Can private members of the base class be accessed by the derived class? If yes, how?

  15. Differentiate containership and Inheritance?

*****************************************

Reviews & Comments about 11th Standard Computer Science - Inheritance Two Marks Questions

Write your Comment