Q.1.
Encapsulation and abstraction differ as ____________
Q.2.
Which feature of OOP is exhibited by the function overriding?
Q.3.
How to access the private member function of a class?
Q.4.
Which keyword should be used to declare static variables?
Q.5.
Which is correct syntax for declaring pointer to object?
Q.6.
Which class/set of classes can illustrate polymorphism in the following C++ code? abstract class student { public : int marks; calc_grade(); } class topper:public student { public : calc_grade() { return } }; class average:public student { public : calc_grade() { return } }; class failed{ int marks; };
Q.7.
If data members are private, what can we do to access them from the class object?
Q.8.
Which among the following is not a necessary condition for constructors?
Q.9.
Object being passed to a copy constructor ___________
Q.10.
If in multiple inheritance, class C inherits class B, and Class B inherits class A. In which sequence are their destructors called if an object of class C was declared?
Q.11.
Instance of which type of class can’t be created?
Q.12.
___________ underlines the feature of Polymorphism in a class.
Q.13.
Which feature in OOP is used to allocate additional functions to a predefined operator in any language?
Q.14.
Which feature can be implemented using encapsulation?