Here is a 10 question Exception Handling Quiz for class 12. It covers Introduction, handling exceptions using try-except-finally blocks.

Exception Handling Quiz

1. What is the purpose of exception handling in programming?

 
 
 
 

2. Which keyword is used to start an exception handling block in Python?

 
 
 
 

3. What is the purpose of the ‘except’ block in exception handling?

 
 
 
 

4. In a ‘try-except’ block, where should you place the code that might raise an exception?

 
 
 
 

5. What is the purpose of the ‘finally’ block in exception handling?

 
 
 
 

6. Which of the following is a built-in exception in Python?

 
 
 
 

7. How can you handle multiple exceptions in a single ‘except’ block?

 
 
 
 

8. What is the purpose of the ‘else’ block in exception handling?

 
 
 
 

9. Which of the following is an example of a runtime error that might be caught using exception handling?

 
 
 
 

10.  In exception handling, what is the order of blocks execution when an exception occurs?

 
 
 
 

Copywrite © 2020-2024, CBSE Python,
All Rights Reserved