Courseiva
Advanced Object Oriented ProgramminghardMultiple SelectObjective-mapped

PCPP1 Advanced Object Oriented Programming Practice Question

Which THREE of the following represent common issues when using __slots__?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Subclasses must define their own __slots__ to avoid creating a __dict__.

Slots can break pickling in some cases, make multiple inheritance tricky, and prevent adding attributes dynamically.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Subclasses must define their own __slots__ to avoid creating a __dict__.

    Why this is correct

    Otherwise, the child gets a dictionary.

  • They make it impossible to add new attributes dynamically.

    Why this is correct

    This is a side effect of disabling __dict__.

  • They are incompatible with all decorators.

    Why it's wrong here

    They work fine with decorators.

  • They prevent the use of multiple inheritance.

    Why it's wrong here

    They work with multiple inheritance, but with caveats.

  • Classes with __slots__ cannot have a __dict__ by default.

    Why this is correct

    This is the primary constraint.

About these practice questions

This PCPP1 question is part of Courseiva's 209-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official Python Institute exam blueprint

This PCPP1 practice question is part of Courseiva's free Python Institute certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCPP1 exam.