- Home
- Placement
- Programming
- Inheritance
- Array
- Data Types
- Functions
- Loop & Control Statements
- Operators & Expressions
- Pointer
- Preprocessor
- Storage Classes
- Structure & Union
- Variables & Constants
- Classes and Objects
- Consructors and Destructors
- Exception handling
- File Handling
- Function Overloading
- Inheritance
- Operator Overloading
- Polymorphism
- Templates
C Language
C++ language
JAVA
-
-
( 1 ) Inheritance is __________ in nature
- 1) transitive
- 2) intransitive
- 3) Both 1 & 2
- 4) None of these
-
Show Answer Report Discussion in forumAnswer : 1) transitive
Solution :
discussion
Answer : 1) transitive
-
-
-
( 2 ) The major goal of inheritance in c++ is:
- 1) To facilitate the conversion of data types.
- 2) To help modular programming.
- 3) To extend the capabilities of a class.
- 4) To hide the details of base class.
-
Show Answer Report Discussion in forumAnswer : 3) To extend the capabilities of a class.
Solution :
discussion
Answer : 3) To extend the capabilities of a class.
-
-
-
( 3 ) 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 - 1) Only 2 ,4
- 2) Only 1 , 3
- 3) Only 1 , 4
- 4) Only 2, 3
-
Show Answer Report Discussion in forumAnswer : 3) Only 1 , 4
Solution :
discussion
Answer : 3) Only 1 , 4
-
-
-
( 4 ) In multiple inheritance, the base classes are constructed
- 1) in the order of declaration in the derived class
- 2) in the order of declaration in the program.
- 3) in the order of definition of a class
- 4) None of these
-
Show Answer Report Discussion in forumAnswer : 1) in the order of declaration in the derived class
Solution :
discussion
Answer : 1) in the order of declaration in the derived class
-
-
-
( 5 ) Class derived : public base 1, public base 2 {} is an example of
- 1) Polymorphic inheritance
- 2) multilevel inheritance
- 3) Hierarchical inheritance
- 4) multiple inheritance
-
Show Answer Report Discussion in forumAnswer : 2) multilevel inheritance
Solution :
discussion
Answer : 2) multilevel inheritance
-
-
-
( 6 ) what is Hybrid Inheritance?
- 1) multiple inheritance
- 2) multilevel inheritance
- 3) multipath inheritance
- 4) Both 1 & 2
-
Show Answer Report Discussion in forumAnswer : 4) Both 1 & 2
Solution :
discussion
Answer : 4) Both 1 & 2
-
-
-
( 7 ) What is the main benefit of inheritance?
- 1) Reusability
- 2) Hierarchical Classification
- 3) Both 1 & 2
- 4) None of these
-
Show Answer Report Discussion in forumAnswer : 3) Both 1 & 2
Solution :
discussion
Answer : 3) Both 1 & 2
-
-
-
( 8 ) The default visibility mode while inheriting is
- 1) private
- 2) public
- 3) protected
- 4) None of these
-
Show Answer Report Discussion in forumAnswer : 1) private
Solution :
discussion
Answer : 1) private
-
-
-
( 9 ) The process of building new classes from existing one is called
- 1) Structure.
- 2) Polymorphism.
- 3) Inheritance.
- 4) Template.
-
Show Answer Report Discussion in forumAnswer : 3) Inheritance.
Solution :
discussion
Answer : 3) Inheritance.
-
-
-
( 10 ) The mechanicm of deriving one base class with more than one derived class
- 1) Multilevel inheritance
- 2) Multiple inheritance
- 3) Hybrid inheritance
- 4) Hierarchical inheritance
-
Show Answer Report Discussion in forumAnswer : 4) Hierarchical inheritance
Solution :
discussion
Answer : 4) Hierarchical inheritance
-