1. Home
  2. Data Science
  3. Python
  4. Which module serialises Python objects to a binary format?

Added 25 Nov 2026

Which module serialises Python objects to a binary format?

  1. binary
  2. serialize
  3. struct only
  4. pickle Correct answer

Correct answer

D. pickle

MCQSEXAM

Explanation

pickle converts objects to bytes; only unpickle trusted data.

Reference

Asked in: Python Interview File Handling

https://docs.python.org/3/tutorial/inputoutput.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs