Q. What is the pickling?

  • (A) it is used for object serialization
  • (B) it is used for object deserialization
  • (C) none of the mentioned
  • (D) all of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) it is used for object serialization
Explanation: pickle is the standard mechanism for object serialization. pickle uses a simple stack-based virtual machine that records the instructions used to reconstruct the object. this makes pickle vulnerable to security risks by malformed or maliciously constructed data, that may cause the deserializer to import arbitrary modules and instantiate any object.

Explanation by: Mr. Dubey
pickle is the standard mechanism for object serialization. pickle uses a simple stack-based virtual machine that records the instructions used to reconstruct the object. this makes pickle vulnerable to security risks by malformed or maliciously constructed data, that may cause the deserializer to import arbitrary modules and instantiate any object.

πŸ’¬ Discussion

πŸ“Š Question Analytics

πŸ‘οΈ
485
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate