Home »
MCQs »
Python MCQs
The module Pickle is used to ___
71. The module Pickle is used to ___.
- Serializing Python object structure
- De-serializing Python object structure
- Both A and B
- None of the mentioned above
Answer: C) Both A and B
Explanation:
Pickle is a Python module that allows you to save any object structure along with its associated data. Pickle is a Python module that can be used to serialize and de-serialize any type of Python object structure. Serialization is the process of converting data or an object stored in memory to a stream of bytes known as byte streams, which is a type of data stream. These byte streams, which are contained within a binary file, can then be stored on a disc, in a database, or transmitted over a network. Pickling is another term for the serialization process. De-serialization, also known as unpickling, is the inverse of the pickling process, in which a byte stream is converted back to a Python object through the pickling process.