Python - MCQ
Multiple Choice Questions
Python MCQ - Object-Oriented Programming in Python - Set 34
16. Does python have an "abstract" keyword
A). Yes
B). No
C). Maybe
View Answer
Correct: B
17. Which of the following is/are contents of polymorphism.
A). method overloading
B). method overriding
C). both above
D). none of the above
View Answer
Correct: C
18. Which keyword is used to access members of the base class?
A). self
B). pass
C). super
D). assert
View Answer
Correct: C
19. __str__() function is reffers to
A). string representation
B). object representation
C). both a and b
D). none of the above
View Answer
Correct: A
20. A function with parameters cannot be decorated.
A). TRUE
B). FALSE
View Answer
Correct: A