Python Exception Handling and Debugging Quiz

Read tracebacks, know the common Python errors, handle them with try and except, raise your own, and spot the bugs that trip up even experienced developers.

All levels 5 quizzes · 50 questions about 30 minutes
0/5passed Category exam 20 mixed questions. 80% earns a certificate.
Tags:
1 Reading Tracebacks Easy Learn to read a Python traceback and find the line and the reason behind an error. #tracebacks#debugging 10 questions · ~5 min Not started Start
2 Common Errors Easy Match everyday Python errors like TypeError, NameError and KeyError to the code that causes them. #exceptions#debugging 10 questions · ~5 min Not started Start
3 try / except / finally Medium Predict how try, except, else and finally run together, including returns and loops. #exceptions#control-flow 10 questions · ~6 min Not started Start
4 Raising Exceptions Medium Raise built-in and custom exceptions, re-raise them and chain them with from. #exceptions#custom-exceptions 10 questions · ~6 min Not started Start
5 Find the Bug Hard Spot the classic Python gotchas behind code that runs but gives the wrong answer. #debugging#gotchas#interview 10 questions · ~8 min Not started Start