841. Not using virtual destructor feature in a C++ object oriented programing can cause
A. An Issue in creating object of the class
B. Memory leak
C. An issue in calling base class destructor
D. None of the above

842. Which of the following is a mechanism of static polymorphism?
A. Templates
B. Function overloading
C. Operator overloading
D. All of the above

843. IS A relationship in C++ is
A. Inheritance
B. Encapsulation
C. Composition
D. None of the above

844. Which of the following is not correct for virtual function in C++ ?.
A. Virtual function can be static.
B. Virtual function should be accessed using pointers
C. Virtual function is defined in base class
D. Must be declared in public section of class

845. How can we make a class abstract?
A. By declaring it abstract using the static keyword
B. By declaring it abstract using the virtual keyword.
C. By making at least one member function as pure virtual function
D. By making all member functions constant

846. How many specifiers are present in access specifiers in class?
A. 2
B. 1
C. 4
D. 3

847. Which of these following members are not accessed by using direct member access operator?
A. Public
B. Private
C. Protected
D. Both B & C

848. Which other keywords are also used to declare the class other than class?
A. Struct
B. Union
C. Object
D. Both struct & union

849. Which of the following can be overloaded?
A. Object
B. Operators
C. Both A & B
D. None of the above

850. Which is also called as abstract class?
A. Virtual function
B. Derived class
C. Pure virtual function
D. None of the mentioned

Leave a Reply