Question:medium

__________ is the process of transforming data or an object in memory (RAM) to a stream of bytes called byte streams.

Show Hint

Pickling = converting objects into byte streams. Unpickling = restoring objects from byte streams.
Updated On: Feb 16, 2026
  • read()
  • write()
  • Pickling
  • De-serialization
Show Solution

The Correct Option is C

Solution and Explanation

Step 1: Understanding Pickling.
Pickling in Python refers to the serialization of a Python object (such as a list, dictionary, or class instance) into a byte stream. This byte stream can then be saved to a file or transmitted.
Step 2: Opposite process.
The inverse operation is known as Unpickling or de-serialization, which reconstructs the original Python object from a byte stream.
Step 3: Eliminate wrong options.
- Option 1: \texttt{read()} → This function reads data from a file; it is not a serialization process.
- Option 2: \texttt{write()} → This function writes data but does not perform serialization.
- Option 4: De-serialization → This is the reverse of pickling, i.e., unpickling.
Therefore, the correct answer is Pickling.
Final Answer: \[\boxed{\text{Pickling}}\]
Was this answer helpful?
0