
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 1)
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 1–5
- 1
A developer is writing a caching system that stores the results of expensive function calls. The results are Python objects that may include custom class instances. The cache must be stored in memory as a bytes object so it can be sent to a remote cache server. Which function should the developer use to convert the result object to bytes?
Select an answer first - 2
A system administrator maintains a Python script that stores configuration values in a dictionary. The script must persist this dictionary to disk so that a separate monitoring script can read and modify individual keys without loading the entire dictionary into memory. The configuration contains only strings, integers, and booleans. Which approach is most appropriate?
Select an answer first - 3
Given the following code, what is the type of the variable `restored`?
Select an answer first - 4
What does the mode parameter in `shelve.open(filename, mode='c')` control?
Select an answer first - 5
A developer is using the shelve module to store user session data. The script opens the shelf, writes several keys, and then needs to ensure all data is written to disk before the program continues. Which action is required?
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.