The pickle module is used for _______________and ________ any python object structure.
The pickle module is used for _______________and ________ any python object structure.
Solution
✅ Correct Option: 2
The pickle module converts a Python object into a byte stream (serializing, or pickling) and converts that byte stream back into the object (de-serializing, or unpickling). The functions are pickle.dump() and pickle.dumps() for serializing, and pickle.load() and pickle.loads() for de-serializing.
Option 4: "packing" and "unpacking" are terms for the struct module (struct.pack() and struct.unpack()), which converts values to and from C-style binary data. The pickle documentation uses "serializing" and "de-serializing".
Related questions:
2025: 14 May Shift 1