Direction: Choose the correct option
Q1.
How do you create a custom exception in Python?
Direction: Choose the correct option
Q2.
What should you define in a custom exception class?
Direction: Choose the correct option
Q3.
How do you raise a custom exception?
Direction: Choose the correct option
Q4.
Can a custom exception have additional attributes?
Direction: Choose the correct option
Q5.
What is the best practice for naming custom exceptions?
Direction: Choose the correct option
Q6.
If you inherit from `Exception`, where does the custom exception belong in the exception hierarchy?
Direction: Choose the correct option
Q7.
How can you differentiate between multiple custom exceptions?
Direction: Choose the correct option
Q8.
What does `raise MyError() from e` do?
Direction: Choose the correct option
Q9.
Should custom exceptions be defined in a module?
Direction: Choose the correct option
Q10.
What is the base class for exceptions that represent program errors?
