🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Raises a new RuntimeError
  2. B.Re-raises the exception currently being handled
  3. C.Ends the program silently
  4. 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 →