Question 1: Python OOPs - Class Creation
Which of the following correctly defines a class in Python?
Question 2: Python OOPs - Object Instantiation
What is the correct way to create an object of a class Person?
Question 3: Python OOPs - Constructor
Which method is the constructor in Python?
Question 4: Python OOPs - Instance Variables
What will this code print?
Question 5: Python OOPs - Class Variables
Which of the following is a class variable?
Question 6: Python OOPs - Inheritance
Which syntax correctly inherits class Parent in a class Child?
Question 7: Python OOPs - Method Overriding
What is method overriding?
Question 8: Python OOPs - self Keyword
What is the purpose of self in a class method?
Question 9: Python OOPs - super()
What is the purpose of super() in Python?
Question 10: Python OOPs - Encapsulation
Which of the following demonstrates encapsulation?