Labour Day Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: mxmas70

Home > Python Institute > PCPP1 > PCPP-32-101

PCPP-32-101 PCPP1 - Certified Professional in Python Programming 1 Question and Answers

Question # 4

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.

Full Access
Question # 5

Select the true statement related to PEP 257.

A.

String literals that occur immediately after another docstring are called attribute docstrings.

B.

Attribute docstrings and Additional docstrings are two types of extra docstrings that can be extracted by software tools.

C.

String Iiterals that occur in places other than the first statement in a module, function, or class definition can act as documentation They are recognized by the Python bytecode compiler and are accessible as runtime object attributes

D.

String literals that occur immediately after a simple assignment at the top level of a module are called complementary docstrings

Full Access
Question # 6

What is true about type in the object-oriented programming sense?

A.

It is the bottommost type that any object can inherit from.

B.

It is a built-in method that allows enumeration of composite objects

C.

It is the topmost type that any class can inherit from

D.

It is an object used to instantiate a class

Full Access