In Python, what is the technical purpose of the pickle module?

2026

In Python, what is the technical purpose of the pickle module?

Answer: B. To convert a Python object hierarchy into a byte stream (Serialization) so it can be saved to a file.

  1. A.

    To compress text files to take up less disk space.

  2. B.

    To convert a Python object hierarchy into a byte stream (Serialization) so it can be saved to a file.

  3. C.

    To encrypt sensitive data stored in CSV files.

  4. D.

    To convert Python code into a standalone executable file.

Attempted by 360 students.

Show answer & explanation

Correct answer: B

Explore the full course: Bpsc

Loading lesson…