831. Which of the following concepts is used to implement late binding?
A. Static function
B. Virtual function
C. Const function
D. Operator function

832. For Cat and Animal class, correct way of inheritance is
A. Class Cat: public Animal
B. Class Animal: public Cat
C. Both are correct way
D. None is correct way

833. Which of the following provides a reuse mechanism?
A. Abstraction
B. Inheritance
C. Dynamic binding
D. Encapsulation

834. In a class, encapsulating an object of another class is called
A. Encapsulation
B. Inheritance
C. Composition
D. None of the above

835. A private function of a derived class can be accessed by the parent class.
A. TRUE
B. FALSE
C. May Be
D. Can’t Say

836. Reusability is a desirable feature of a language as it
A. Decreases the testing time
B. Reduces the compilation time
C. Lowers the maintenance cost
D. Both A and C

837. Which of the following operators cannot be overloaded ?
A. Static function
B. Virtual function
C. Const function
D. Operator function

838. Which of the following correctly describes overloading of functions?
A. Virtual polymorphism
B. Transient polymorphism
C. Ad-hoc polymorphism
D. Pseudo polymorphism

839. How many loops are there in C++ 98?
A. 2
B. 3
C. 4
D. 5

840. Which of the following access specifier is used as a default in a class definition?
A. Private
B. Public
C. Friend
D. Protected

Leave a Reply