Quiz centre
Python quiz
Python questions on references, mutable defaults, closures, classes, generators, exceptions, pandas and NumPy. Every "what does this print" answer was checked by running the code.
- 60 questions
- 22 topics
- 15 beginner · 30 intermediate · 15 advanced
- Free, no sign-up
Loading 60 questions…
What is covered
Topics
Question types: single choice, code output.
- Core syntax & data4 questions
- Dunder methods4 questions
- Functions4 questions
- Inheritance & overriding4 questions
- pandas4 questions
- Encapsulation3 questions
- Functional programming3 questions
- Missing data3 questions
- Modules & exceptions3 questions
- NumPy3 questions
- OOP3 questions
- Class design2 questions
- Context managers & generators2 questions
- Exceptions2 questions
- Generators & decorators2 questions
- Groupby & joins2 questions
- NumPy arrays & dtypes2 questions
- NumPy computation2 questions
- NumPy indexing2 questions
- OOP for pipelines2 questions
- Time series & best practice2 questions
- pandas selection2 questions
Study first
Related material
How the quizzes work
- Practice mode shows the answer and explanation straight after each question.
- Timed mode gives you about the time each question needs and shows answers only when you submit.
- Shuffled. Questions and options are in a new order each time, so you learn the idea, not the position.
- Saved in this browser: unfinished quizzes, your history, bookmarked questions and the ones you got wrong. No account needed.
- Original questions. Written by MiTechShots; code and SQL outputs were checked by running them.