About this practice test
What this test covers
A practice test on core to intermediate Python 3. It covers:
- Data types, operators, strings, lists, tuples, dictionaries and sets
- Control flow, functions, *args/**kwargs, scope and closures
- Lambdas, map/filter and comprehensions
- Object-oriented Python: classes, inheritance, dunder methods and properties
- Exceptions, iterators, generators and decorators
- The standard library (collections, itertools, datetime, json, os/pathlib), file I/O and context managers
- Mutability, copying, is vs ==, f-strings, the walrus operator, match and unpacking
Who it is for
Freshers and early-career developers preparing for coding rounds, online hiring tests and technical interviews.
Format
200 multiple-choice questions, a mix of "what is the output" code questions and concept questions, at easy, medium and hard levels. Each question shows a short explanation after you answer, including the common trap where there is one.
Free to attempt with a TestsWorld account. No card required.