topic/Polymorphism
Start Test
Question No
Title
Type
Marks
693.
Which of the following unary operators can be overloaded?truefalse+newis
MCQ
5
694.
A derived class can stop virtual inheritance by declaring an override as
MCQ
5
695.
Which of the following keyword is used to change the data and behavior of a base class by replacing a member of a base class with a new derived member?
MCQ
5
512.
In Python, what is polymorphism?
MCQ
5
513.
Which of the following statements about method overloading in Python is correct?
MCQ
5
514.
Consider the following code:class Shape: def area(self): pass class Circle(Shape): def area(self, radius): return 3.14 * radius * radius class Rectangle(Shape): def area(self, length, width): return length * widthWhat is this example illustrating?
MCQ
5
515.
How is polymorphism achieved?
MCQ
5
516.
What is the purpose of the__len__()method in Python classes in the context of polymorphism?
MCQ
5
696.
Which of the following keyword is used to overload user-defined types by defining static member functions?
MCQ
5