🐍 Python Functions & Decorators Quiz

1. What is a class in Python?




2. Which statement best describes a Python object?




3. How would you define a function in Python?




4. When you assign a function to a variable without using parentheses, what are you storing in that variable?




5. In a function definition, what do we call the placeholders listed inside the parentheses?




6. When you provide actual values to a function call, what are those values called?




7. What does a return statement do inside a function?




8. Which concept involves passing a function object to another function as an input?




9. What term describes a function defined inside another function?




10. What is a wrapper function?




11. If you attempt to call an inner function before it is defined, which error are you most likely to encounter?




12. What happens when you print a function object without parentheses?




13. Which built-in function confirms that everything in Python is an object by revealing its type?




14. Which example illustrates passing a function object as a parameter?




15. What does a decorator syntactically do in Python?