The process of converting a python object for writing into a binary file is called____.
The process of converting a python object for writing into a binary file is called____.
Solution
✅ Correct Option: 2
Pickling is the process of converting a Python object (list, dictionary, etc.) into a byte stream so it can be written to a binary file. In Python this is done with the pickle module, using pickle.dump().
Option 1: unpickling is the reverse process, converting the byte stream read from a binary file back into a Python object with pickle.load().
Pickling is also called serialization, and unpickling is called deserialization.
Related questions:
2025: 15 May Shift 2
2026: 13 May Shift 2
2025: 3 June Shift 2
2026: 23 May Shift 2