Direction: Choose the correct option
Q1.
What is the syntax for a try-except block?
Direction: Choose the correct option
Q2.
What does the `except` block catch?
Direction: Choose the correct option
Q3.
How do you catch a specific exception type?
Direction: Choose the correct option
Q4.
What is the purpose of the `else` clause in a try-except?
Direction: Choose the correct option
Q5.
What does the `finally` clause do?
Direction: Choose the correct option
Q6.
What is the base class for all built-in exceptions?
Direction: Choose the correct option
Q7.
How do you raise an exception manually?
Direction: Choose the correct option
Q8.
What happens if an exception is not caught?
Direction: Choose the correct option
Q9.
How do you get the error message from an exception?
Direction: Choose the correct option
Q10.
What is the output of `try: x = 1/0; except ZeroDivisionError: print('error')`?
