Python MCQ test
Check your Python knowledge with a free online quiz. Each attempt picks 15 multiple-choice questions at random, from fresher to experienced level, and shows your score with the right answer and an explanation for every question.
15 random Python questions · no time limit
A new mix every attempt. You see your score and every explanation at the end.
What this Python test covers
- Lists, dicts, sets and tuples, and when to use each
- Mutability, references and the mutable default argument trap
- Comprehensions, generators and iterators
- Functions, decorators, *args and **kwargs
- Exceptions, context managers and file handling
Want to read first? See all Python interview questions and answers.