Explore topic-wise MCQs in Python.

This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Python knowledge and support exam preparation. Choose a topic below to get started.

1.

The copy module uses the ___________________ protocol for shallow and deep copy.

A. pickle
B. marshal
C. shelve
D. copyreg
Answer» B. marshal
2.

To sterilize an object hierarchy, the _____________ function must be called. To desterilize a data stream, the ______________ function must be called.

A. dumps(), undumps()
B. loads(), unloads()
C. loads(), dumps()
D. dumps(), loads()
Answer» E.