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

Page: 1 / 2
Total 20 questions
Exam Code: PCPP-32-101                Update: Aug 5, 2026
Exam Name: PCPP1 – Certified Professional in Python Programming 1

Python Institute PCPP1 – Certified Professional in Python Programming 1 PCPP-32-101 Exam Dumps: Updated Questions & Answers (August 2026)

Question # 1

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

A.

debug

B.

dump

C.

log

D.

parse

Question # 2

Which of the following methods allow you to load a configuration using ConfigParser? (Select two answers.)

A.

read

B.

read_dict

C.

read_conf

D.

read_str

Question # 3

If purple can be obtained from mixing red and blue, which color codes represent the two ingredients? Select two answers)

A.

#FFFFFF

B.

#0000FF

C.

#FF0000

D.

#000000

Question # 4

Select the true statements related to PEP 8 naming conventions. (Select two answers.)

A.

Class names should use the mixedCase naming style.

B.

Exception names should follow the function naming conventions.

C.

Modules should have short names entirely in lower-case.

D.

You should never use the characters “l” (lower-case letter “el”) and “O” (upper-case letter “oh”) as single character variable names.

Question # 5

Select the true statement about PEP 8 recommendations related to line breaks and binary operators.

A.

It is recommended that you use line breaks before binary operators to improve code readability.

B.

It is permissible to use line breaks before or after a binary operator as long as the convention is consistent locally However, for new code it is recommended that break lines should be used only after binary operators.

C.

It is recommended that you use line breaks after binary operators to improve code readability.

D.

There is no specific PEP 8 recommendation related to using line breaks with binary operators.

Question # 6

Select the true statements related to PEP 257. (Select two answers.)

A.

The closing quotes of a one-line docstring should be put on a separate line.

B.

A docstring is a string literal that occurs anywhere in Python code, and is used to document Python functions, classes, and public methods.

C.

A docstring is a string literal that occurs as the first statement in a Python module, function, class, or method, and is used to document them.

D.

There are two types of docstrings in Python: one-line and multi-line docstrings.

Question # 7

Select the correct statements about the csv module.

(Select two answers.)

A.

The DictReader method always gets the header from the first line in the file.

B.

A reader object maps each row to a list of strings.

C.

It is possible to create a DictWriter object without specifying a header.

D.

A DictReader object maps each row to a dict.

Question # 8

Look at the following examples of comments and docstrings in Python. Select the ones that are useful and compliant with PEP 8 recommendations. (Select the two best answers.)

A.

def net_expense(q, price):

"""Return the total cost of items before tax."""

return q * price

B.

n = n - 1 # Decrement n by 1.

C.

val = val + 1.15 # Compensate for diminished value.

D.

def total_cost(q):

'''Takes the q argument and multiplies it by 1.15.'''

return q * 1.15

Question # 9

A socket object is usually created by which one of the following invocations?

A.

socket. socket (socket_domain, socket_type)

B.

socket = socket. socket (socket_number)

C.

socket = socket. socket (socket_domain, socket_type, server_address)

D.

socket = socket.socket(server address)

Question # 10

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

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" }

Page: 1 / 2
Total 20 questions

Most Popular Certification Exams

Payment

       

Contact us

Site Secure

mcafee secure

TESTED 05 Aug 2026