How compile-time polymorphisms are implemented in C++?
a) Using Inheritance
b) Using Virtual functions
c) Using Templates
d) Using Inheritance and Virtual functions
Compile-time polymorphism is implemented using templates in which the types(which can be checked during compile-time) are used decides which function to be called.
Which of the following is an abstract data type?
Class is used as an abstract data type as it can be used to give implementation independent view whereas no other data type can be used to provide this.
Which concept means the addition of new components to a program as it runs?
a) Data hiding
b) Dynamic binding
c) Dynamic loading
d) Dynamic typing
Dynamic loading is the concept of adding new components to a program as it runs.
Which of the following explains the overloading of functions?
a) Virtual polymorphism
b) Transient polymorphism
c) Ad-hoc polymorphism
d) Pseudo polymorphism
Ad-hoc polymorphism is a type of polymorphism in which a function denotes heterogeneous implementation depending upon the types of argument.
Which of the following approach is used by C++?
C++ is an object-oriented language and OOL uses a bottom-up approach to solve/view a problem.