Solveeit Logo

Question

Computer Science Question on Exception Handling

What is pickling in Python?

A

It is used to deserialize objects, i.e., converting the byte stream to object hierarchy.

B

It is used to serialize objects, i.e., to convert Python object hierarchy to byte stream.

C

It is used to move the file pointer to a specific location.

D

It is used in exception handling.

Answer

It is used to serialize objects, i.e., to convert Python object hierarchy to byte stream.

Explanation

Solution

Pickling in Python is the process of serializing objects into a byte stream, which can then be saved or transferred.