Match List-I with List-II
List-I List-II Description Exception 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
Match List-I with List-II
| List-I | List-II |
|---|---|
| Description | Exception 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 I | List 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.
Related questions:
2026: 23 May Shift 1
2025: 15 May Shift 2
2026: 18 May Shift 2