1.

Which of the following functions can be used to find the protocol version of the pickle module currently being used?(a) pickle.DEFAULT(b) pickle.CURRENT(c) pickle.CURRENT_PROTOCOL(d) pickle.DEFAULT_PROTOCOLThis question was addressed to me during an internship interview.The above asked question is from Pickle Module topic in chapter Mapping Functions and Modules of Python

Answer»

Correct ANSWER is (d) PICKLE.DEFAULT_PROTOCOL

The explanation is: The FUNCTION pickle.DEFAULT_PROTOCOL can be used to find the protocol version of the pickle MODULE currently being used by the system.



Discussion

No Comment Found

Related InterviewSolutions