1.

To sterilize an object hierarchy, the _____________ function must be called. To desterilize a data stream, the ______________ function must be called.(a) dumps(), undumps()(b) loads(), unloads()(c) loads(), dumps()(d) dumps(), loads()The question was posed to me in an online interview.My question is from Pickle Module topic in section Mapping Functions and Modules of Python

Answer»

Right option is (d) dumps(), LOADS()

Easy explanation - To STERILIZE an object HIERARCHY, the dumps() FUNCTION must be called. To desterilize a data STREAM, the loads function must be called.



Discussion

No Comment Found

Related InterviewSolutions