Error Handling Quiz

Complete this assessment with 100% score to master this chapter.

01Which block of code runs when an error occurs inside a 'try' block?

02What error is raised when you try to divide a number by zero?

03When does the 'finally' block run?

04How do you raise a custom exception in Python?

05What is the benefit of creating a custom exception class?