Match List-I with List-II
List-I Exception List-II Description (A) EOFError (I) It is raised when mismatched or inappropriate values. (B) NameError (II) It is raised when an operator is supplied with a value of the incorrect data type. (C) ValueError (III) It is raised when the end of file condition is reached. (D) TypeError (IV) It is raised when a local or global variable name is not defined.
Match List-I with List-II
| List-I Exception | List-II Description |
|---|---|
| (A) EOFError | (I) It is raised when mismatched or inappropriate values. |
| (B) NameError | (II) It is raised when an operator is supplied with a value of the incorrect data type. |
| (C) ValueError | (III) It is raised when the end of file condition is reached. |
| (D) TypeError | (IV) It is raised when a local or global variable name is not defined. |
Solution
✅ Correct Option: 2
| List I | List II |
|---|---|
| (A) EOFError | (III) Raised when the end of file condition is reached |
| (B) NameError | (IV) Raised when a local or global variable name is not defined |
| (C) ValueError | (I) Raised when mismatched or inappropriate values are given |
| (D) TypeError | (II) Raised when an operator is supplied with a value of the incorrect data type |
ValueError is about the right type but a wrong value, e.g. . TypeError is about the wrong type itself, e.g. .
Related questions:
2026: 31 May Shift 1
2026: 23 May Shift 2