_______ is the process of transforming data or an object in memory (RAM) to a stream of bytes called byte streams.
_______ is the process of transforming data or an object in memory (RAM) to a stream of bytes called byte streams.
Solution
✅ Correct Option: 3
Pickling (serialization) converts an in-memory Python object into a byte stream so it can be stored in a file or sent over a network. In Python, this is done with the pickle module, for example pickle.dump().
Option 4: De-serialization (unpickling) is the reverse process, converting a byte stream back into an object in memory.
Options 1 and 2: read() and write() are general file methods for reading and writing data. They do not define the object-to-byte-stream conversion.
Related questions:
2025: 13 May Shift 2
2026: 29 May Shift 1
2025: 30 May Shift 2