CBSE Class 12 Computer Science Question 42 of 43

Practice Paper — Question 4

Back to all questions
4
Question

Question 35(a)

What is meant by serialization and deserialization in the context of binary files?

Answer

Serialization is the process of transforming data or an object in memory (RAM) into a stream of bytes called byte streams. These byte streams, in a binary file, can then be stored on a disk, in a database, or sent through a network. The serialization process is also called pickling.

Deserialization or unpickling is the inverse of the pickling process, where a byte stream is converted back into a Python object.