Exercise: Python

Questions for: Polymorphism

Which of the following keyword is used to overload user-defined types by defining static member functions?
A:
op
B:
opoverload
C:
operator
D:
operatoroverload
Answer: C
No answer description is available. Let's discuss.
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?
A:
new
B:
base
C:
overloads
D:
override
Answer: A
No answer description is available. Let's discuss.
A derived class can stop virtual inheritance by declaring an override as
A:
inherits
B:
extends
C:
inheritable
D:
not inheritable
Answer: E
No answer description is available. Let's discuss.
Which of the following unary operators can be overloaded?
  1. true
  2. false
  3. +
  4. new
  5. is
A:
1, 2, 3
B:
3, 4, 5
C:
3 only
D:
5 only
Answer: A
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz