Direction: Choose the correct option
Q1.
What is a decorator in Python?
Direction: Choose the correct option
Q2.
How do you apply a decorator `@my_decorator` to a function?
Direction: Choose the correct option
Q3.
What is the output of a decorator that returns a wrapper?
Direction: Choose the correct option
Q4.
How do you pass arguments to a decorator?
Direction: Choose the correct option
Q5.
What is the purpose of `functools.wraps`?
Direction: Choose the correct option
Q6.
Can decorators be applied to classes?
Direction: Choose the correct option
Q7.
What is a common use case for decorators?
Direction: Choose the correct option
Q8.
What is the output of `@deco; def f(): pass` if `deco` just returns the function?
Direction: Choose the correct option
Q9.
How do you define a decorator that takes an optional argument?
Direction: Choose the correct option
Q10.
What does `@staticmethod` do?
