🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Python OOP: questions with answers

15 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. What does self refer to inside a method?
  2. Q2. When does init run?
  3. Q3. What does this print? (code)
  4. Q4. What does super().init(name) do in a child class?
  5. Q5. Which method controls what print(obj) shows?
  6. Q6. What does this print? (code)
  7. Q7. What does this print? (code)
  8. Q8. What does this print? (code)
  9. Q9. What does this print? (code)
  10. Q10. What does this print? (code)
  11. Q11. What does this print? (code)
  12. Q12. What is the difference between a class and an object?
  13. Q13. What does this print? (code)
  14. Q14. Which OOP pillar is shown when a child class gives its own version of a parent's method?
  15. Q15. What does this print? (code)