Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

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 3)

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 11–15

  1. 11foundation · easy

    Which code snippet correctly serializes a Python list to a bytes object using the pickle module?

    Select an answer first
  2. 12expert · hard

    A developer is designing a system that needs to persist a Python object that contains a reference to a file handle. The developer tries to use pickle.dump() but receives a TypeError. What is the most likely reason?

    Select an answer first
  3. 13application · medium

    A data science team is building a pipeline that trains a machine learning model and then needs to save the trained model object to disk so it can be loaded later for predictions. The model object contains custom classes and complex internal state. The team does not need the model to be readable by any other language. Which serialization approach is most appropriate?

    Select an answer first
  4. 14foundation · easy

    Which statement about the shelve module is true?

    Select an answer first
  5. 15expert · hard

    A company runs a Python application that processes financial transactions. The application maintains a dictionary of active sessions, where each session is a custom class instance containing sensitive data. The sessions must be persisted to disk so that the application can be restarted without losing active sessions. The security team requires that the data be stored in a format that is not human-readable and that the file be locked to prevent concurrent access from multiple processes. The application also needs to update individual session records frequently. Which approach best meets all requirements?

    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.