Direction: Choose the correct option
Q1.
What is a class in Python?
Direction: Choose the correct option
Q2.
How do you create an object (instance) of a class `MyClass`?
Direction: Choose the correct option
Q3.
What is the `__init__` method used for?
Direction: Choose the correct option
Q4.
What is `self` in a class method?
Direction: Choose the correct option
Q5.
How do you define a method inside a class?
Direction: Choose the correct option
Q6.
What is the output of `class A: x=5; print(A.x)`?
Direction: Choose the correct option
Q7.
How do you access an instance variable from within a method?
Direction: Choose the correct option
Q8.
What is the purpose of `@classmethod`?
Direction: Choose the correct option
Q9.
What is the purpose of `@staticmethod`?
Direction: Choose the correct option
Q10.
What does `isinstance(obj, MyClass)` do?
