Quiz on Python Exceptions



1. What is an exception in Python?
2. How do you handle exceptions in Python?
3. What will happen if an exception is not handled?
4. Which of the following is a built-in exception in Python?
5. What is the purpose of the 'finally' block?

Advertisements