1.

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 mentionedI have been asked this question in unit test.The above asked question is from Files in section Regular Expressions and Files of Python

Answer»

Correct choice is (b) It is USED for object deserialization

The best I can explain: 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.



Discussion

No Comment Found

Related InterviewSolutions