Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.43K Points
Coach

Q.) What is unpickling?

(A) it is used for object serialization
(B) it is used for object deserialization
(C) none of the mentioned
(D) all of the mentioned
Correct answer : Option (B) - it is used for object deserialization

Explanation:
 we have been working with simple textual data. what if we are working with objects rather than simple text? for such situations, we can use the pickle module. this module serializes python objects. the python objects are converted into byte streams and written to text files. this process is called pickling. the inverse operation, reading from a file and reconstructing objects is called deserializing or unpickling.

Share

Discusssion

Login to discuss.