
Python InstitutePCPP1 - Certified Professional Python Programmer 1
Domain 1Objective 11
PCPP-32-101 1.11 (De)serialize Python Objects PCPP-32-1 Practice Questions (Page 2)
Part of the Advanced Object-Oriented Programming domain, which accounts for 35% of the PCPP-32-1 exam. Python Institute does not publish an official question count, but from its 65-minute exam (~25–45 total, ~9–16 in this domain), expect 1–1 from this objective — we provide 18 practice questions to prepare you well beyond it. (estimate)
18questions here
4free pages
3concepts
35%of the exam
Questions 6–10
- 6
A developer is writing a function that receives a Python object from a network socket as a bytes object. The object was originally a tuple of integers. The developer needs to reconstruct the original tuple in memory. Which code snippet correctly performs this task?
Select an answer first - 7
Which statement correctly describes the relationship between persistence, serialization, and deserialization?
Select an answer first - 8
A developer is responsible for a legacy Python application that uses pickle to serialize a custom class instance to a file. The class definition has changed: a new attribute was added, and an old attribute was renamed. When the application tries to load a previously saved pickle file, it fails with an AttributeError. The developer needs to load the old data and migrate it to the new class structure. What is the most appropriate approach?
Select an answer first - 9
A developer is using shelve to store a large dataset. The developer notices that the shelf file is growing much larger than expected. The developer suspects that deleted keys are not being removed from the file. Which action should the developer take to reclaim the space used by deleted keys?
Select an answer first - 10
A developer is using shelve to store session data. The developer opens the shelf in read-write mode and modifies a value. Later, the developer opens the same shelf in another part of the program and reads the value, but it still shows the old value. What is the most likely cause?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Python Institute. “PCPP-32-1” is a trademark of its owner, used for identification only.