← Quiz: Exceptions in Depth: all 10 questions
Quiz: Exceptions in Depth · Question 6 of 10
What does a bare raise inside an except block do?
What does a bare raise inside an except block do?
- A.Raises a new RuntimeError
- B.Re-raises the exception currently being handled
- C.Ends the program silently
- D.Is a SyntaxError
Answer & explanation
Correct answer: Re-raises the exception currently being handled
It passes the same exception on to the caller.
Can you get the rest right without peeking?
Take the timed Quiz: Exceptions in Depth quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →