1. What is a decorator in Python?
2. What does `yield` do in a function?
3. True or False: A context manager can be used with the `with` statement.
4. What is the output of `class A: pass; A.__class__`?
5. What does `@classmethod` do?
6. What is the purpose of `__slots__` in a class?
7. What is the output of `[x for x in (1, 2, 3) if x > 1][-1]`?
8. True or False: Python's garbage collector uses reference counting.
9. What does `functools.partial` do?
10. What happens if `__init__` is not defined in a class?