Python Institute PCPP-32-101 PCPP1 - Certified Professional in Python Programming 1 Exam Practice Test

Page: 1 / 14
Total 45 questions

Question 1

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



Answer : A, D

Question 2

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

A)

B)

C)

D)

An exception will be raised.



Answer : B

Question 3

What is the result of the following code?

What is the result of the following code?



Answer : B

Question 4

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



Answer : A, B

Question 5

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



Answer : B

Question 6

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:



Answer : A, C

Question 7

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



Answer : A

Page:    1 / 14   
Total 45 questions