Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
 

Python Institute PCPP-32-101 Exam Actual Questions

The questions for PCPP-32-101 were last updated on Nov. 16, 2024.
  • Viewing page 1 out of 12 pages.
  • Viewing questions 1-4 out of 45 questions

Topic 1 - Exam A

Question #1 Topic 1

Select the true statement about composition.

  • A. Composition extends a class’s capabilities by adding new components and modifying the existing ones
  • B. Composition allows a class to be projected as a container of different classes
  • C. Composition is a concept that promotes code reusability, while Inheritance promotes encapsulation
  • D. Composition is based on the has a relation, so it cannot be used together with inheritance
Reveal Solution Hide Solution   Discussion   2

Correct Answer: B 🗳️

Question #2 Topic 1

Analyze the following snippet and select the statement that best describes it.

  • A. The code is an example of implicitly chained exceptions.
  • B. The code is erroneous as the OwnMath class does not inherit from any Exception type class
  • C. The code is fine and the script execution is not interrupted by any exception.
  • D. The code is an example of explicitly chained exceptions
Reveal Solution Hide Solution   Discussion   5

Correct Answer: B 🗳️

Question #3 Topic 1

Analyze the following snippet and select the statement that best describes it.

  • A. self.name is the name of a class variable
  • B. var1 is the name of a global variable
  • C. Excalibur is the value passed to an instance variable
  • D. weapon is the value passed to an instance variable
Reveal Solution Hide Solution   Discussion   2

Correct Answer: C 🗳️

Question #4 Topic 1

The following snippet represents one of the OOP pillars. Which one is that?

  • A. Serialization
  • B. Inheritance
  • C. Encapsulation
  • D. Polymorphism
Reveal Solution Hide Solution   Discussion   2

Correct Answer: D 🗳️

Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...