Match List-I with List-II
List-I List-II (A) tell() (I) used to position the file object at a particular position (B) seek() (II) used for pickling python object to a binary file (C) load() (III) returns an integer which specifies the current position of the file object in the file (D) dump() (IV) used for unpicking data from a binary file
Match List-I with List-II
| List-I | List-II |
|---|---|
| (A) tell() | (I) used to position the file object at a particular position |
| (B) seek() | (II) used for pickling python object to a binary file |
| (C) load() | (III) returns an integer which specifies the current position of the file object in the file |
| (D) dump() | (IV) used for unpicking data from a binary file |
Solution
✅ Correct Option: 3
| List I | List II |
|---|---|
| (A) tell() | (III) returns an integer which specifies the current position of the file object in the file |
| (B) seek() | (I) used to position the file object at a particular position |
| (C) load() | (IV) used for unpickling data from a binary file |
| (D) dump() | (II) used for pickling a Python object to a binary file |
Easily confused pairs: load() and dump() are not interchangeable. dump() writes (pickles) an object into the file, and load() reads (unpickles) it back.
Memory trick: tell() tells you where you are, and seek() seeks (moves to) a position.
Related questions:
2025: 27 May Shift 2
2026: 11 May Shift 2
2026: 31 May Shift 1
2026: 21 May Shift 1