Skip to main contentSkip to solution

_______ 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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question