Choose a topic to test your knowledge and improve your OOPS skills
Which is the correct condition for function overriding?
Exactly same declaration in base and derived class includes________
How to access the overridden method of base class from the derived class?
The functions to be overridden ____
Which language doesn’t support the method overriding implicitly?
In C# ________
In Delphi _______
What should be used to call the base class method from the derived class if function overriding is used in Java?
In Kotlin, the function to be overridden must be ______
Abstract functions of a base class ______
If virtual functions are defined in the base class then ________
Which is private member functions access scope?
Which among the following is true?
Which member can never be accessed by inherited classes?
Which syntax among the following shows that a member is private in a class?
If private member functions are to be declared in C++ then ________
In java, which rule must be followed?
How many private member functions are allowed in a class?
How to access a private member function of a class?
Private member functions _______
Which function among the following can’t be accessed outside the class in java in same package?
If private members are to be called outside the class, which is a good alternative?
A private function of a derived class can be accessed by the parent class.
Which error will be produced if private members are accessed?
Can main() function be made private?
If a function in java is declared private then it ______
What does memory allocation for objects mean?
When is the memory allocated for an object?
Using new is type safe as ______
Which of the following function can be used for dynamic memory allocation of objects?
How much memory will be allocated for an object of class given below? class Test{ int mark1; int mark2; float avg; char name[10]; };
When is the memory allocated for an object gets free?
Which among the following keyword can be used to free the allocated memory for an object?
Which function is called whenever an object goes out of scope?
Which operator can be used to check the size of an object?
The memory allocated for an object ________
If an object is declared in a user defined function ___________
In java ________ takes care of managing memory for objects dynamically.
Which among the following are valid ways of overloading the operators?
Which among the following is mandatory condition for operators overloading?
When the operator to be overloaded becomes the left operand member then ______
If the left operand is pointed by *this pointer, what happens to other operands?
If a friend overloaded operator have to be changed to member overloaded operator, which operator should be used with the class name?
What is the syntax to overload an operator?
Why the left parameter is removed from parameter list?
Which object’s members can be called directly while overloading operator function is used (In function definition)?
If left operand member is specified directly in the function definition, which is the correct implicit conversion of that syntax?
When the friend operator overloading is converted into member operator overloading ____
Where in the parameter list is the implicit *this is added?
Which operator among the following can be overloading using only member function?