Black Friday Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Free and Premium Python Institute PCPP-32-101 Dumps Questions Answers

Page: 1 / 2
Total 45 questions

PCPP1-Certified Professional in Python Programming 1 Questions and Answers

Question 1

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

A)

B)

C)

D)

Options:

A.

OptionA

B.

OptionB

C.

OptionC

D.

OptionD

Buy Now
Question 2

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.

Question 3

Select the true statements about the connection-oriented and connectionless types of communication. (Select two answers.)

Options:

A.

In the context of TCP/IP networks, the communication side that initiates a connection is called the client, whereas the side that answers the client is called the server

B.

Connectionless communications are usually built on top of TCP

C.

Using walkie-talkies is an example of a connection-oriented communication

D.

A phone call is an example of a connection-oriented communication

Question 4

What is true about the invocation of the cget () method?

Options:

A.

It can be used to read widget attributes.

B.

It has the same effect as the config () method.

C.

It can be used to set new values to widget attributes.

D.

It can be replaced with a dictionary-like access manner.

Question 5

What is ElementTree?

Options:

A.

A Python built-in module that contains functions used for creating HTML files.

B.

A Python library that contains an API used for parsing and manipulating JSON files.

C.

A Python library that contains functions and tools used for manipulating text files in GUI Programming.

D.

A Python built-in module that contains functions used for parsing and creating XML data.

Question 6

Look at the following code snippets and decide which ones follow PEP 8 recommendations for whitespacesin 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:

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Page: 1 / 2
Total 45 questions