16.
Which of the following cannot be a friend?
a) Function
b) Class
c) Object
d) Operator function
17.
Why references are different from pointers?
a) A reference cannot be made null
b) A reference cannot be changed once initialized
c) No extra operator is needed for dereferencing of a reference
d) All of the mentioned
18.
Which of the following provides a programmer with the facility of using object of a class inside other classes?
a) Inheritance
b) Composition
c) Abstraction
d) Encapsulation
19.
How many types of polymorphism are there in C++?
a) 1
b) 2
c) 3
d) 4
20.
How run-time polymorphisms are implemented in C++?
a) Using Inheritance
b) Using Virtual functions
c) Using Templates
d) Using Inheritance and Virtual functions