← 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 →- Q1. What does self refer to inside a method?
- Q2. When does init run?
- Q3. What does this print? (code)
- Q4. What does super().init(name) do in a child class?
- Q5. Which method controls what print(obj) shows?
- Q6. What does this print? (code)
- Q7. What does this print? (code)
- Q8. What does this print? (code)
- Q9. What does this print? (code)
- Q10. What does this print? (code)
- Q11. What does this print? (code)
- Q12. What is the difference between a class and an object?
- Q13. What does this print? (code)
- Q14. Which OOP pillar is shown when a child class gives its own version of a parent's method?
- Q15. What does this print? (code)