Which out of the following module is required to be used to create a binary…

2023

Which out of the following module is required to be used to create a binary file in Python?

  1. A.

    bin

  2. B.

    pickle

  3. C.

    binfile

  4. D.

    Binary

Attempted by 2249 students.

Show answer & explanation

Correct answer: B

The pickle module is used to serialize and deserialize Python objects into binary files.

Explore the full course: Rssb Senior Computer Instructor