Skip to main contentSkip to solution

The process of converting a python object for writing into a binary file is called____.

Solution

✅ Correct Option: 2

Pickling is the process of converting a Python object (list, dictionary, etc.) into a byte stream so it can be written to a binary file. In Python this is done with the pickle module, using pickle.dump().


Option 1: unpickling is the reverse process, converting the byte stream read from a binary file back into a Python object with pickle.load().

Pickling is also called serialization, and unpickling is called deserialization.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question