PCPP-32-101 Actual Exam Questions

Last updated on Dec. 13, 2024.
Exam Code:PCPP-32-101
Exam Name:Certified Professional in Python Programming 1
Exam Questions:45
 

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 🗳️

file Viewing page 1 out of 12 pages.
Viewing questions 1-4 out of 45 questions
Next Questions
Browse atleast 50% to increase passing rate cup
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.
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago