Question 1
What is the purpose of the else block in exception handling?
Question 2
What is the primary purpose of the raise keyword in python?
Question 3
Which block is used to handle exceptions in python?
Question 4
Which block allows you to specify code that should be executed when an exception occurs?
Question 5
What is the role of the finally block in exception handling?
Question 6
In which block do you typically place the code that you want to execute when no exceptions occur?
Question 7
Which block is not mandatory in a try-except-finally structure?
Question 8
What is the primary purpose of the try block in python?
Question 9
In python, can you have multiple except blocks for a single try block?
Question 10
What happens if an exception is raised in the finally block?