Learn Without Walls
← Back to Module 12

Module 12 Quiz

Test your knowledge of Error Handling • 10 Questions

Question 1

What type of error does print("Age: " + 25) produce?

Question 2

What does the except block do?

Question 3

What error does int("hello") produce?

Question 4

When does the finally block run?

Question 5

What is a traceback?

Question 6

When does the else block (in try/except/else) run?

Question 7

What does the raise keyword do?

Question 8

Which debugging technique involves explaining your code line by line to find bugs?

Question 9

What error does my_dict = {"a": 1}; print(my_dict["b"]) produce?

Question 10

Why should you catch specific exceptions rather than using a bare except:?

Quiz Results


Back to Module 12