Q:
If all the classes use private inheritance in multilevel inheritance then ______________
belongs to collection: OBJECT ORIENTED PROGRAMMING INHERITANCE AND ITS TYPES MCQ
OBJECT ORIENTED PROGRAMMING INHERITANCE AND ITS TYPES MCQ
- Which among the following best describes the Inheritance?
- How many basic types of inheritance are provided as OOP feature?
- Which among the following best defines single level inheritance?
- Which among the following is correct for multiple inheritance?
- Which programming language doesn’t support multiple inheritance?
- Which among the following is correct for hierarchical inheritance?
- Which is the correct syntax of inheritance?
- Which type of inheritance leads to diamond problem?
- Which access type data gets derived as private member in derived class:
- If a base class is inherited in protected access mode then which among the following is true?
- Members which are not intended to be inherited are declared as:
- While inheriting a class, if no access mode is specified, then which among the following is true? (in C++)
- If a derived class object is created, which constructor is called first?
- The private members of the base class are visible in derived class but are not accessible directly
- How can you make the private members inheritable?
- How many types of inheritance are possible in C++?
- Which among the following is true?
- Which type of inheritance is illustrated by the following code?
- Which among the following best describes multiple inheritance?
- How many types of inheritance can be used at a time in single program?
- Which type of inheritance results in diamond problem?
- If 6 classes uses single level inheritance with pair classes (3 pairs), which inheritance will this be called?
- Which among the following is correct for the following code?
- Which among the following is false?
- If class A has two nested classes B and C. Class D has one nested class E, and have inherited class A. If E inherits B and C, then:
- In hierarchical inheritance, all the classes involve some kind of inheritance. (True/ False)
- Which type of inheritance cannot involve private inheritance?
- How many classes can be inherited by a single class in multiple inheritance (C++)?
- How many classes can be inherited by a single class in java?
- If multi-level inheritance is used, First class B inherits class A, then C inherits B and so on. Till how many classes can this go on?
- Which among the following defines single level inheritance?
- If class A and class B are derived from class C and class D, then ________________
- If single inheritance is used, program will contain ________________
- Single level inheritance supports _____________ inheritance
- Which method in the code below is single level inherited?
- If single level inheritance is used and an abstract class is created with some undefined functions, can its derived class also skip some definitions?
- Which among the following is false for single level inheritance?
- Which concept will result in derived class with more features (consider maximum 3 classes)?
- Single level inheritance is safer than _____________
- Which language doesn’t support single level inheritance?
- Output of following program?
- Output of following program?
- Single level inheritance will be best for___________
- Which constructor will be called first from the classes involved in single inheritance from object of derived class?
- If base class contains 2 nested classes, will it be possible to implement single level inheritance?
- Which among the following best defines multilevel inheritance?
- If there are 5 classes, E is derived from D, D from C, C from B and B from A. Which class constructor will be called first if the object of E or D is created?
- If there are 3 classes. Class C is derived from class B and B is derived from A, Which class destructor will be called at last if object of C is destroyed
- Which Class is having highest degree of abstraction in multilevel inheritance of 5 levels?
- If all the classes use private inheritance in multilevel inheritance then ______________
- Multilevel inheritance allows _________________ in the program
- What is minimum number of levels for a implementing multilevel inheritance?
- In multilevel inheritance one class inherits _______________
- All the classes must have all the members declared private to implement multilevel inheritance
- Can abstract classes be used in multilevel inheritance?
- How many abstract classes can be used in multilevel inheritance?
- If all the classes used parameterized constructors and no default constructor then, ___________
- In multilevel inheritance, which is the most significant feature of OOP used?
- Does following code show multiple inheritance?
- Is it compulsory for all the classes in multilevel inheritance to have constructors defined explicitly if only last derived class object is created?
- Multiple inheritance is ____________________
- Which problem arises due to multiple inheritance, if hierarchical inheritance is used previously for its base classes?
- How many classes should a program contain to implement the multiple inheritance?
- Which programming language restricts the use of multiple inheritance?
- Is it possible to have all the abstract classes as base classes of a derived class from those?
- If class A inherits class B and class C as “class A: public class B, public class C {// class body ;}; ”, which class constructor will be called first?
- Why does diamond problem arise due to multiple inheritance?
- How many base classes can a derived class have which is implementing multiple inheritance?
- How to overcome diamond problem ?
- When multiple inheritance is used, which class object should be used in order to access all the available members of parent and derived class ?
- If all the members of all the base classes are private then,
- Is it compulsory to have constructor for all the classes involved in multiple inheritance?
- If a class contains 2 nested class and is being inherited by another class, will there be any multiple inheritance?
- Which members can’t be accessed in derived class in multiple inheritance ?
- Can the derived class be made abstract if multiple inheritance is used ?
- Which among the following is best to define hierarchical inheritance?
- Do members of base class gets divided among all of its child classes ?
- Each class can inherit the base class ________________
- How many classes must be there to implement hierarchical inheritance ?
- Base class _______________
- Which access specifiers should be used so that all the derived classes restrict further inheritance of base class members?
- Which class uses hierarchical inheritance in following code?
- Which among the following is correct for following code ?
- How many classes can be derived from the base class using hierarchical inheritance?
- If one class have derived the base class privately then another class can’t derive the base class publically
- Which among the following is true ?
- Hierarchical inheritance can be a subset of _________________
- Which type of inheritance is most suitable for inheriting Same syllabus into different colleges with different streams?
- Which class constructor is called first when an object of derived class is created?
- All the derived classes can access only few members of base class that other derived classes can’t access at same time, in hierarchical inheritance
- Which among the following best defines the hybrid inheritance?
- How many types of inheritance should be used for hybrid ?
- If single inheritance is used with class A and B. A is base class. Then class C,D and E where C is base class and D is derived from C, then E is derived from D
- Diamond problem includes ____________________ hybrid inheritance
- If __________________ inheritance is done continuously, it is similar to tree structure
- Which amongst the following is true for hybrid inheritance?
- Which type of inheritance must be used so that the resultant is hybrid?
- The private member’s are made public to all the classes in inheritance
- If hierarchical inheritance requires to inherit more than one class to single class, which syntax is correct? ( A,B,C are class names )
- What is the maximum number of classes allowed in hybrid inheritance?
- What is the minimum number of classes to be there in a program implementing hybrid inheritance?
- If object of lowest level class is created ( last derived class ), _________________ of its parent class constructors are called
- If hybrid inheritance is used, it mostly shows _______________ feature of OOP
- The sequence of destructors being called while using hybrid inheritance is ____________
- Overloading operators are possible only by using hybrid inheritance
(b).Each class can access only non-private members of its parent
need an explanation for this answer? contact us directly to get an explanation for this answer