Python - MCQ

Multiple Choice Questions


Share with a Friend

 

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

21. Which of the following is correct? 

A). 5
B). 6
C). 0
D). Error
View Answer
Correct: D


22. Which of the following is false with respect to Python code? 

A). "std" is the reference variable for object Student(1,20)
B). id and age are called the parameters.
C). Every class must have a constructor.
D). None of the above
View Answer
Correct: C


23. What will be the output of the below Python code? 

A). 100 100
B). 100 102
C). 102 102
D). Error
View Answer
Correct: B



 
 
 
   
   
   
UltraInfo Technologies
ITDeveloper