931. What is meant by multiple inheritance?
A. Deriving a base class from derived class
B. Deriving a derived class from base class
C. Deriving a derived class from more than one base class
D. None of the mentioned

932. What will be the order of execution of base class constructors in the following method of inheritance.class a: public b, public c {…};
A. b(); c(); a();
B. c(); b(); a();
C. a(); b(); c();
D. b(); a(); c();

933. Inheritance allow in C++ Program?
A. Class Re-usability
B. Creating a hierarchy of classes
C. Extendibility
D. All of the above

934. Can we pass parameters to base class constructor though derived class or derived class constructor?
A. Yes
B. No
C. May Be
D. Can’t Say

935. What are the things are inherited from the base class?
A. Constructor and its destructor
B. Operator=() members
C. Friends
D. All of the above

936. Which of the following advantages we lose by using multiple inheritance?
A. Dynamic binding
B. Polymorphism
C. Both Dynamic binding & Polymorphism
D. None of the mentioned

937. Which symbol is used to create multiple inheritance?
A. Dot
B. Comma
C. Dollar
D. None of the above

938. C++ Inheritance relationship is?
A. Association
B. Is-A
C. Has-A
D. None of the above

939. In inheritance, order of execution of base class and derived class destructors are:
A. Base to derived
B. Derived to base
C. Random order
D. None of the above

940. What is the difference between protected and private access specifiers in inheritance?
A. Private member is not inheritable and not accessible in derived class.
B. Protected member is inheritable and also accessible in derived class.
C. Both are inheritable but private is accessible in the derived class.
D. Both are inheritable but protected is not accessible in the derived class.

Leave a Reply