Here, are some sample questions based on "C++/OOPS Programming language". Read it carefully as these questions will help you in cracking any interview.
66) What is meant by inheritance hierarchy ?
Answer: The relationship between a base and derived class is referred to as a derivation or inheritance hierarchy. The derivation from multiple base classes is referred to as a derivation or inheritance graph.
67) Differentiate between multiple and multilevel inheritances ?
Answer: Multiple inheritance is the inheritance hierarchy wherein one derived class inherits from multiple base classes.
Multilevel inheritance is the inheritance hierarchy wherein a subclass acts as a base class for other classes.
68) What is an ABC (`Abstract Base Class') ?
Answer: A class serving only as a base class for other classes and no objects of which are created is known as an abstract base class.
69) What is a `virtual destructor' ?
Answer: A virtual destructor is a destructor which is essential in C++ programming. The virtual destructor is important for a C++ base class to ensure that the destructor from the most called function is chosen.
70) What is a dangling pointer or wild pointers ?
Answer: Dangling pointers or wild pointers are pointers in computer programming, which do not point to a valid object of the appropriate type. They are special variations of memory safety violations.
ALSO READ:
Frequently Asked C++/OOPS Interview Questions With Answers – 15.
Frequently Asked C++/OOPS Interview Questions With Answers – 16.
Frequently Asked C++/OOPS Interview Questions With Answers – 17.
Frequently Asked C++/OOPS Interview Questions With Answers – 18.
Frequently Asked C++/OOPS Interview Questions With Answers – 19.
… Back To C++/OOPS Interview QnA Index.
Comments
Post a Comment
Please share your opinions and suggestions or your experience in the comments section. This way we can all help each other...
Experienced guys can share their resumes at admin@interview-made-easy.com