Python Institute PCPP-32-101 PCPP1 – Certified Professional in Python Programming 1 Exam Practice Test
PCPP1 – Certified Professional in Python Programming 1 Questions and Answers
The following JSON string:
{ 1 }
Analyze the following snippet and select the statement that best describes it.

Which of the following will set the button text's font to 12 point italics Anal? (Select two answers)
A)

B)

C)

D)

Select the true statement about PEP 8 recommendations related to line breaks and binary operators.
The following snippet represents one of the OOP pillars Which one is that?

Select the correct statements about the csv module.
(Select two answers.)
What will happen if the mam window is too small to fit all its widgets?
Look at the following code snippets and decide which ones follow PEP 8 recommendations for whitespaces in expressions and statements (Select two answers.)
A)
No whitespace immediately before the opening parenthesis that starts the list of arguments of a function call:

B)
A whitespace immediately before a comma, semicolon, and colon:

C)
No whitespace between a trailing comma and a following closing parenthesis:

D)
A whitespace immediately after the opening parenthesis that starts indexing or slicing:

Select the true statements about the json.-dumps () function. (Select two answers.)
What is true about the unbind_all () method?
(Select two answers.)
What is true about the following snippet of code?
class Cat:
def __init__(self, weight, sex):
self.height = height
self.weight = weight
self.sex = sex
def say(self):
print('meows')
kitty = Cat(1, 'male')
kitty.say()
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)

B)

C)

D)

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

Select the true statements about PEP 8 recommendations related to using blank lines. (Select two answers.)
Analyze the following snippet and choose the best statement that describes it.
class Sword:
var1 = 'weapon'
def __init__(self):
self.name = 'Excalibur'
s1 = Sword()
What is ElementTree?
What is a___traceback___?
(Select two answers )
Select the true statements related to PEP 8 programming recommendations for code writing. (Select two answers:)
Select the true statements about the following invocation:

(Select two answers.)
Which methods can be invoked in order to draw a triangle?
(Select two answers.)