Python_Institute
PCPP-32-101 · Question #47
PCPP-32-101 Question #47: Real Exam Question with Answer & Explanation
The correct answer is D. function and class definitions. Function and class definitions cannot be pickled because they are not easily serializable due to their code and environment dependencies.
Question
Which of the following types cannot be pickled?
Options
- ANone, booleans
- Bstrings, bytes, bytearrays
- Cintegers, floating-point numbers, complex numbers
- Dfunction and class definitions
Explanation
Function and class definitions cannot be pickled because they are not easily serializable due to their code and environment dependencies.
Community Discussion
No community discussion yet for this question.