dump( ) method is used for _______________.
dump( ) method is used for _______________.
Solution
✅ Correct Option: 1
The dump() method of Python's pickle module serializes (pickles) an object and writes it to a binary file opened in wb mode, e.g. pickle.dump(obj, file).
Option 3: this describes load(), the counterpart of dump(), which reads and unpickles data from a binary file.
Memory trick: dump = data goes out to the file, load = data comes back into the program.
Related questions:
2025: 30 May Shift 2
2026: 31 May Shift 1
2025: 22 May Shift 1
2026: 23 May Shift 1