0 of 4 questions completed
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 4 questions answered correctly
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
You have the potential to do better! 🙂
If you found a concept confusing on this page then please leave a comment below asking for clarity.
Try re-reading the tutorial on this page before you retake this quiz!
Good work on clearing this quiz!
Outstanding work! You have mastered this lesson. Onward to the next one!
Is the following piece of code valid?
print(“First method called”)
print(“Second method called”)
ob = B()
What are the methods which begin and end with two underscore characters called?
Special methods need to be explicitly called during object creation. True or False?
Here is another special attribute that exists by default – __name__. Whenever you create a class, __name__ attribute will be present in the background.
See if you can try to guess what does print(test1.__name__) display (assuming Test is the name of the class) ?