Match the LIST-I with LIST-II
LIST-I LIST-II A. ImportError I. Raised when the subscript in a sequence is out of range B. EOFError II. Raised when there is an error in the syntax of Python code C. IndexError III. Raised when the requested module definition is not found D. SyntaxError IV. Raised when the end of file condition is reached without reading any data by input()
Match the LIST-I with LIST-II
| LIST-I | LIST-II | ||
|---|---|---|---|
| A. | ImportError | I. | Raised when the subscript in a sequence is out of range |
| B. | EOFError | II. | Raised when there is an error in the syntax of Python code |
| C. | IndexError | III. | Raised when the requested module definition is not found |
| D. | SyntaxError | IV. | Raised when the end of file condition is reached without reading any data by input() |
Solution
✅ Correct Option: 2
| List I | List II |
|---|---|
| (A) ImportError | (III) Raised when the requested module definition is not found |
| (B) EOFError | (IV) Raised when the end of file condition is reached without reading any data by input() |
| (C) IndexError | (I) Raised when the subscript in a sequence is out of range |
| (D) SyntaxError | (II) Raised when there is an error in the syntax of Python code |
ImportError and IndexError are easy to mix up because both involve "finding" something. Import is about modules, Index is about positions in a list or tuple.
Related questions:
2026: 18 May Shift 2
2025: 15 May Shift 2
2026: 11 May Shift 2