PCPP1 • Practice Questions 2 — 50 Questions
Free PCPP1 practice questions 2 — 50 questions with explanations. No signup required.
You are implementing a Singleton pattern using the __new__ method. Why is it considered best practice to also define a __call__ method in the metaclass or use a decorator instead of just overriding __new__ in the base class?
Choose an answer to begin — your selection is scored in the full session.
50 questions · instant feedback and full explanations after every question.