PCPP1 – Certified Professional in Python Programming 1 Questions and Answers
Select the true statements related to PEP 8 programming recommendations for code writing. (Select two answers:)
Select the true statement about the socket. gaierror exception.
Select the true statements about the sqlite3 module. (Select two answers.)
Select the true statement about PEP 8 recommendations related to line breaks and binary operators.
Select the true statements related to PEP 8 programming recommendations for exception handling. (Select two answers.)
The following snippet represents one of the OOP pillars Which one is that?

Which of the following statements regarding the __traceback__ attribute are true?
(Select two answers.)
Which of the following constants will be used if you do riot define the quoting argument in the writer method provided by the csv module?
What is true about the constructor’s argument, which sets the button’s title to a desired string?
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()
The following JSON string:
{ 1 }
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:

What is ElementTree?
Which sentence about the ©property decorator is false?
What will happen if the mam window is too small to fit all its widgets?
Analyze the following snippet and decide whether the code is correct and/or which method should be distinguished as a class method.

Select a log that matches the following format:
'%(name)s[%(levelname)s][%(asctime)s] :%(message)s'
Select the true statements about the json.-dumps () function. (Select two answers.)
Which one of the following methods allows you to debug an XML tree in the xml.etree ELementTree module?
Select the true statements about the sqirte3 module. (Select two answers.)