Python Functions
Default arguments, *args/**kwargs, scope rules and late binding: the function behaviours that trip up real code.
Ready to start?
- 7 questions
- ~5 mins
Answer order is shuffled each attempt. Your results are saved only in this browser.
What this quiz covers
Arguments, scope and closures.
- Default arguments
- Arguments
- Scope
- Return values
- Lambda
- Closures
Python learning roadmap
See where this quiz fits from beginner to expert.
Want to learn more? Python Functions Explained: Arguments, Scope and Common Traps
7 min read
Want to learn more? Python Quiz Preparation: A Practical Guide to Python MCQs
9 min read
How this works
Practice or exam mode
Practice mode explains each answer straight away. Exam mode holds all answers until you finish, then shows a full review.
Shuffled answer order
Options are shuffled on every attempt, so you learn the idea rather than the position of the right letter.
Timer, flags and skips
A timer runs while you play. Flag questions to revisit them, or skip and come back from the question navigator.
Saved on your device
Scores, streaks and topic accuracy are stored in your browser only. There is no account.
Keep practising
More Python quizzes
- PythonIntermediate
Lists, Tuples, Sets & Dicts
Choosing and using built-in collections
SetsListsDictionaries7 Qs~5mStart - PythonAdvanced
Advanced Python
Generators, decorators and class attributes
GeneratorsDecoratorsFile handling7 Qs~5mStart - PythonBeginner
Python Basics
Types, operators and strings
OperatorsVariablesStrings7 Qs~5mStart