Summer Sale - 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dm70dm

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

Questions 4

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

PCPP-32-101 Question 4

Options:

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.

Buy Now
Questions 5

Select a log that matches the following format:

'%(name)s[%(levelname)s][%(asctime)s] :%(message)s'

Options:

A.

root[CRITICAL][2019-10-19 18:21:35] :Invalid argument

B.

root:CRITICAL:2019-10-19 18:21:35,407:Invalid argument

C.

root[CRITICAL][2019-10-19 18:21:35,407] :Invalid argument

D.

root:CRITICAL:2019-10-19 18:21:35:Invalid argument

Buy Now
Questions 6

Select the true statements related to PEP 8 programming recommendations for code writing. (Select two answers:)

Options:

A.

You should use the not ... is operator (e.g. if not spam is None:), rather than the is not operator (e.g. if spam is not None:), to increase readability.

B.

You should make object type comparisons using the ismstanceQ method (e.g. if isinstance (obj, int) :) instead of comparing types directly (eg if type(obj) is type(i)).

C.

You should write code in a way that favors the CPython implementation over PyPy, Cython. and Jython.

D.

You should not write string literals that rely on significant trailing whitespaces as they may be visually indistinguishable, and certain editors may trim them

Buy Now
Questions 7

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

PCPP-32-101 Question 7

Options:

A.

Serialization

B.

Inheritance

C.

Encapsulation

D.

Polymorphism

Buy Now
Questions 8

Which sentence about the ©property decorator is false?

Options:

A.

The ©property decorator should be defined after the method that is responsible for setting an encapsulated attribute.

B.

The @property decorator designates a method which is responsible for returning an attribute value

C.

The ©property decorator marks the method whose name will be used as the name of the instance attribute

D.

The ©property decorator should be defined before the methods that are responsible for setting and deleting an encapsulated attribute

Buy Now
Questions 9

Which one of the following methods allows you to debug an XML tree in the xml.etree ELementTree module?

Options:

A.

debug

B.

dump

C.

log

D.

parse

Buy Now
Questions 10

Select the true statements about PEP 8 recommendations related to using blank lines. (Select two answers.)

Options:

A.

You should not put any blank lines between groups of imports.

B.

You should surround top-level functions and class definitions with one blank line.

C.

You should surround top-level functions and class definitions with two blank lines.

D.

You should surround method definitions inside classes by a single blank line.

Buy Now
Questions 11

What is the result of the following code?

PCPP-32-101 Question 11

What is the result of the following code?

Options:

A.

Nothing will be displayed

B.

Loading data...

C.

Debugging mode has been enabled

D.

Debugging mode has been enabled Loading data...

Buy Now
Questions 12

What will be the content of the co/ors.csv file when you run the following code?

PCPP-32-101 Question 12

A)

PCPP-32-101 Question 12

B)

PCPP-32-101 Question 12

C)

PCPP-32-101 Question 12

D)

An exception will be raised.

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 13

Select the true statement about the socket. gaierror exception.

Options:

A.

It is raised when a timeout occurs on a socket.

B.

It is raised when a system function returns a system-related error.

C.

It is raised when an address-related error caused by the repr () function occurs.

D.

It is raised when an address-related error caused by the getaddrinfo () and getnameinfo () functions occurs.

Buy Now
Questions 14

What is the result of the following code?

import configparser

config = configparser.ConfigParser()

config['DEFAULT'] = {}

config['mysql'] = {}

config['postgresql'] = {}

config['redis'] = config['postgresql']

print(config.sections())

Options:

A.

['DEFAULT', 'mysql', 'postgresql', 'redis']

B.

['mysql', 'postgresql', 'redis']

C.

['DEFAULT', 'mysql', 'postgresql', 'postgresql']

D.

['mysql', 'postgresql', 'postgresql']

Buy Now
Questions 15

The following JSON string:

{ 1 }

Options:

A.

is erroneous

B.

is an object

C.

is an array

D.

is an integer

Buy Now
Questions 16

Select the true statement about the___name___attribute.

Options:

A.

___name___is a special attribute, which is inherent for both classes and instances, and it contains information about the class to

which a class instance belongs.

B.

___name is a special attribute, which is inherent for both classes and instances, and it contains a dictionary of object attributes.

C.

__name___is a special attribute, which is inherent for classes and it contains information about the class to which a class instance

belongs.

D.

__name___is a special attribute, which is inherent for classes, and it contains the name of a class.

Buy Now
Questions 17

Which of the following examples using line breaks and different indentation methods are compliant with PEP 8 recommendations? (Select two answers.)

Options:

A.

my_dict = {

"X": "180.A",

"Y": "206.P",

"Z": "12.C"

}

B.

spam = my_function(arg_one,

arg_two,

arg_three,

arg_four)

C.

foo = my_function

(arg_one, arg_two,

arg_three, arg_four

)

D.

my_dict = { "A" : "1", "B" : "2", "C" : "1" }

Buy Now
Questions 18

To get an answer (True or False) to the question of whether two objects hold the same values, you should use:

Options:

A.

The id() function

B.

The isinstance() function

C.

The == operator

D.

The is operator

Buy Now
Questions 19

Select the true statements about the sqlite3 module. (Select two answers.)

Options:

A.

The fetchalt method returns None when no rows are available

B.

The execute method allows you to perform several queries at once

C.

The execute method is provided by the Cursor class

D.

The fetchone method returns None when no rows are available

Buy Now
Questions 20

Select the true statements related to PEP 8 programming recommendations for exception handling. (Select two answers.)

Options:

A.

When designing exception hierarchies, you should focus on stating that a problem occurred, rather than programmatically trying to answer the question about what actually went wrong.

B.

You should generally use “bare” except: clauses, as they will not catch SystemExit and KeyboardInterrupt exceptions, making it more difficult to interrupt a program using keyboard shortcuts.

C.

You should derive exceptions from the Exception class, rather than from the BaseException class.

D.

You should generally limit the use of a “bare” except: clause and, whenever possible, use specific exceptions instead.

Buy Now
Exam Code: PCPP-32-101
Exam Name: PCPP1 – Certified Professional in Python Programming 1
Last Update: Aug 20, 2026
Questions: 69

PDF + Testing Engine

$49.5  $164.99

Testing Engine

$37.5  $124.99
buy now PCPP-32-101 testing engine

PDF (Q&A)

$31.5  $104.99
buy now PCPP-32-101 pdf
dumpsmate guaranteed to pass

24/7 Customer Support

DumpsMate's team of experts is always available to respond your queries on exam preparation. Get professional answers on any topic of the certification syllabus. Our experts will thoroughly satisfy you.

Site Secure

mcafee secure

TESTED 20 Aug 2026