Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

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

Page: 1 / 2
Total 45 questions

What is the result of the following code?

What is the result of the following code?

A.

Nothing will be displayed

B.

Loading data...

C.

Debugging mode has been enabled

D.

Debugging mode has been enabled Loading data...

Select the true statements related to PEP 8 programming recommendations for code writing. (Select two answers:)

A.

You should use the not ... is operator (e.g. if not spam is None:), rather than the is not operator (e.g.if spam is notNone:), to increase readability.

B.

You should make object type comparisons using the ismstanceQ method (e.g. if isinstance (obj, int) :) instead of comparing types directly (eg if type(obj) is type(i)).

C.

You should write code in a way that favors the CPython implementation over PyPy, Cython. and Jython.

D.

You should not write string literals that rely on significant trailing whitespaces as they may be visually indistinguishable, and certain editors may trim them

Which function or operator should you use to obtain the answer True or False to the question: "Do two variables refer to the same object?"

A.

The = operator

B.

The isinstanceO function

C.

The id () function

D.

The is operator

If w is a correctly created main application window, which method would you use to foe both of the main window's dimensions?

A.

w. f ixshape ()

B.

w. f ixdim ()

C.

w. resizable ()

D.

w.makewindow ()

What is ElementTree?

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.

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

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

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

A)

B)

C)

D)

An exception will be raised.

A.

Option A

B.

Option B

C.

Option C

D.

Option D

What does the term deserialization mean? Select the best answer.

A.

It is a process of creating Python objects based on sequences of bytes.

B.

It is a process of assigning unique identifiers to every newly created Python object

C.

It is another name for the data transmission process

D.

It is a process of converting the structure of an object into a stream of bytes

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

A.

It is an example of a decorator that accepts its own arguments.

B.

It is an example of decorator stacking.

C.

It is an example of a decorator that can trigger an infinite recursion.

D.

The function is erroneous.