Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
DescriptionException Handlers
(A) Built in Exception(I) try block
(B) Throw an exception explicitly(II) ValueError
(C) Suspicious code(III) finally block
(D) Always executed regardless of exceptions(IV) raise statement

Solution

✅ Correct Option: 1
List IList II
(A) Built in Exception(II) ValueError
(B) Throw an exception explicitly(IV) raise statement
(C) Suspicious code(I) try block
(D) Always executed regardless of exceptions(III) finally block

The try block holds the code that might fail, and the finally block runs whether or not an exception occurs. The raise statement is the one that triggers an exception on purpose.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question