Inheritance MCQ
Correct Answer:
Tt or heterozygous
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Line 4, Line 10
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Is-a
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Is-a
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Superclass
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Inheritance
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Polymorphism
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Make base class as virtual base class
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Mandatory
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Private
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Protected members of the base class become private members of derived class And public members of the base class become private members of derived class
Note: This Question is unanswered, help us to find answer for this one
In case of inheritance where both base and derived class are having constructor and destructor, then which if the following are true?
1. Constructors are executed in their order of derivation
2. Constructors are executed in reverse order of derivation
3. Destructors are executed in their order of derivation
4. Destructors are executed in reverse order of derivation
Correct Answer:
Only 1 , 4
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Hierarchical
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Protected member is inheritable and also accessible in derived class
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
False
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Constructor of base class will be executed first followed by derived class
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Public
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Yes
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
:
Note: This Question is unanswered, help us to find answer for this one
When base class is derived in protected mode, then______________.
1. public members of base class become private members of derived class
2. public members of base class become protected members of derived class
3. public members of base class become public members of derived class
4. protected members of base class become protected members of derived class
5. protected members of base class become private members of derived class
6. protected members of base class become public members of derived class
Correct Answer:
2 , 4
Note: This Question is unanswered, help us to find answer for this one
Correct Answer:
Inheritance
Note: This Question is unanswered, help us to find answer for this one
Programming Languages MCQs | Topic-wise