| Snaprecruit.com

| Snaprecruit.com

Interview question based on skill :

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. How many types of inheritance should be used for hybrid ?

Correct Answer is : At east 2

2. 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. Class C is made to inherit from class B. Which is the resultant type ?

Correct Answer is : Multilevel

3. If __________________ inheritance is done continuously, it is similar to tree structure.

Correct Answer is : Hierarchical

4. Which amongst the following is true for hybrid inheritance?

Correct Answer is : Constructor calls are usual

5. Which type of inheritance must be used so that the resultant is hybrid?

Correct Answer is : None

6. The private member’s are made public to all the classes in inheritance.

Correct Answer is : FALSE

7. If hierarchical inheritance requires to inherit more than one class to single class, which syntax is correct? ( A,B,C are class names )

Correct Answer is : class A: public B, public C

8. What is the maximum number of classes allowed in hybrid inheritance?

Correct Answer is : As many as required

9. What is the minimum number of classes to be there in a program implementing hybrid inheritance?

Correct Answer is : No limit

10. If object of lowest level class is created ( last derived class ), _________________ of its parent class constructors are called.

Correct Answer is : Only parent and parent

11. If hybrid inheritance is used, it mostly shows _______________ feature of OOP.

Correct Answer is : Reusability

12. The sequence of destructors being called while using hybrid inheritance is ____________

Correct Answer is : Reverse of constructors being called

13. Overloading operators are possible only by using hybrid inheritance.

Correct Answer is : FALSE

14. What are inbuilt classes?

Correct Answer is : The predefined classes in a language

15. Inbuilt class __________________________

Correct Answer is : Must be included before use

16. What doesn’t inbuilt classes contain?

Correct Answer is : Function definitions

17. Which among the following not an inbuilt class in C++?

Correct Answer is : Functions

18. What is InputStream class meant for?

Correct Answer is : To handle all input streams

19. Which statement is true for Array class?

Correct Answer is : Each class has an associated Array class

20. What is the use of Math class?

Correct Answer is : To use the mathematical functions