Python - MCQ

Multiple Choice Questions


Share with a Friend

 

Python MCQ - Object-Oriented Programming in Python - Set 33

11. Constructor overloading is allowed in python. 
A). TRUE
B). FALSE
View Answer
Correct: B


12. __del__() is _________ 
A). method
B). delete method
C). destructor
D). none of the above
View Answer
Correct: C


13. Is this code is valid in python or not 

A). Yes
B). No
C). Maybe
View Answer
Correct: A


14. How to declare a private variable in python, Using 
A). private keyword
B). __ (double underscore)
C). _ (single underscore)
D). none of the above
View Answer
Correct: B


15. The class from which the child class inherits is called ________ 
A). Child class
B). Parent class
C). Super class
D). Base class
E). Both ii) iii) and iv
View Answer
Correct: E



 
 
 
   
   
   
UltraInfo Technologies
ITDeveloper