Python OOP Quiz

Build your own types with classes. Practice objects, __init__ and self, inheritance, dunder methods and properties, the tools behind every Python library you use.

Intermediate 5 quizzes · 50 questions about 32 minutes
0/5passed Category exam 20 mixed questions. 80% earns a certificate.
Tags:
1 Classes & Objects Easy Learn how classes, objects, class attributes and instance attributes fit together. #oop#classes 10 questions · ~5 min Not started Start
2 __init__ & self Easy Set up new objects with __init__ and understand what self really is. #oop#constructors 10 questions · ~5 min Not started Start
3 Inheritance Medium Reuse and extend classes with inheritance, method overriding and super(). #oop#inheritance 10 questions · ~6 min Not started Start
4 Dunder Methods Hard Make your classes work with print, ==, +, len, in, sorted and function calls. #oop#dunder-methods 10 questions · ~8 min Not started Start
5 Properties & Class Methods Hard Use @property, setters, @classmethod and @staticmethod, and avoid their traps. #oop#properties 10 questions · ~8 min Not started Start