Programming Medium

Python: Functions & Decorators

Functions are the building blocks of Python programs, and understanding them deeply — from argument passing to closures to decorators — separates intermediate Pythonistas from advanced ones. This quiz covers the full range of Python function features.

Questions test knowledge of positional and keyword arguments, *args and **kwargs, lambda functions, variable scope (LEGB), closures, and decorators. These concepts underpin everything from simple utility functions to frameworks like Flask and Django.

If you've ever wondered how @property or @staticmethod actually work, or what a closure really is, this quiz will solidify your understanding.

Start quiz → Opens in a new tab on Cletica
Sample questions3 of 10 shown
Q1
What does *args allow a function to accept?
Q2
What is a closure in Python?
Q3
What does a decorator do in Python?
Answer all 10 questions on Cletica →

What This Quiz Covers

Cletica

Want to create your own quiz?

Build surveys and quizzes, share with anyone, collect responses — free to start.

Try Cletica for free →