Loading...

C++ Multiple Choice Questions

Our C++ questions and answers focuses on all areas of C++ programming language covering 100+ topics in C++

C++ OOPs Concepts MCQ | Set 3

C++ OOPs Concepts | Set 3


21. How compile-time polymorphisms are implemented in C++?

a) Using Inheritance
b) Using Virtual functions
c) Using Templates
d) Using Inheritance and Virtual functions



22. Which of the following is an abstract data type?

a) int
b) float
c) class
d) string



23. 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



24. Which of the following explains the overloading of functions?

a) Virtual polymorphism
b) Transient polymorphism
c) Ad-hoc polymorphism
d) Pseudo polymorphism



25. Which of the following approach is used by C++?

a) Top-down
b) Bottom-up
c) Left-right
d) Right-left



26. Which operator is overloaded for a cout object?

a) >>
b) <<
c) <
d) >



27. Which of the following cannot be used with the virtual keyword?

a) Class
b) Member functions
c) Constructors
d) Destructors



28. Which concept is used to implement late binding?

a) Virtual functions
b) Operator functions
c) Constant functions
d) Static functions



29. Which of the following is correct?

a) C++ allows static type checking
b) C++ allows dynamic type checking.
c) C++ allows static member function to be of type const.
d) C++ allows both static and dynamic type checking



30. Which of the following supports the concept that reusability is a desirable feature of a language?

a) It reduces the testing time
b) It reduces maintenance cost
c) It decreases the compilation time
d) It reduced both testing and maintenance time



- Related Topics