Python quizzes: #oop

14 quizzes about #oop, with an explanation for every answer.

1 Classes & Objects Easy Learn how classes, objects, class attributes and instance attributes fit together. Python · Object-Oriented Python #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. Python · Object-Oriented Python #oop#constructors 10 questions · ~5 min Not started Start
3 Inheritance Medium Reuse and extend classes with inheritance, method overriding and super(). Python · Object-Oriented Python #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. Python · Object-Oriented Python #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. Python · Object-Oriented Python #oop#properties 10 questions · ~8 min Not started Start
4 Python OOP Interview Questions Medium Classes, inheritance, super(), name mangling and abstract classes as interviewers ask about them. Python · Python Interview Questions #oop#interview 10 questions · ~6 min Not started Start
1 Prototypes Hard Follow the prototype chain to see where JavaScript finds a property and what happens when you write to one. JavaScript · Objects, Prototypes & Classes #prototypes#oop 10 questions · ~8 min Not started Start
2 Classes & Inheritance Medium Practice JavaScript classes, extends, super and the rules about this inside methods. JavaScript · Objects, Prototypes & Classes #classes#oop 10 questions · ~6 min Not started Start
1 Classes & Constructors Easy Check how Java creates objects, runs constructors and shares references. Java · Object-Oriented Java #oop#classes 10 questions · ~5 min Not started Start
2 static & final Medium Know what belongs to the class, what belongs to each object and what can never change. Java · Object-Oriented Java #oop#static 10 questions · ~6 min Not started Start
3 Inheritance & Polymorphism Medium Predict which method runs when a subclass hides behind a parent reference. Java · Object-Oriented Java #oop#inheritance#polymorphism 10 questions · ~6 min Not started Start
4 Abstract Classes & Interfaces Medium Know when to use an abstract class, when to use an interface and what each one allows. Java · Object-Oriented Java #oop#interfaces#abstract-classes 10 questions · ~6 min Not started Start
5 equals() & hashCode() Hard Master the equals/hashCode contract and the HashSet and HashMap bugs that break it. Java · Object-Oriented Java #oop#interview 10 questions · ~8 min Not started Start
4 Static vs Instance Medium Know what belongs to the class and what belongs to each object, a favorite Java interview topic. Java · Java Interview Questions #oop#interview 10 questions · ~6 min Not started Start

Other tags: