Inheritance in C++ MCQs Exercise I

Ques 1 Inheritance


Which of the following about inheritance?

A Inheritance implements Method overloading and method overriding.
B Classes with same names.
C Deriving new classes from existing classes.
D Wrapping of data and method into a single class.

Ques 2 Inheritance


Which of the following is the correct way to inherit the class?

A class A: B {}
B class A extends B {}
C class A : public B { }
D class A extends public B()

Ques 3 Inheritance


In which programming Language multiple inheritance is exists ?

A C
B C++
C Java
D All of these

Ques 4 Inheritance


Which of the following are types of inheritance?

A Multiple Inheritance
B Muti Level Inheritance
C Single Level Inheritance
D All of these

Ques 5 Inheritance


Which of the following best describes the inheritance?

i) Inheritance hides the data to implementation.
ii) Any parent class can access the member of the child class.
iii) A class can access the members of another class just like their own definition.
iv) A class cannot access the members of another class just like their own definition.

A i only
B i and iii only
C iii only
D None of these