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: 2 / 2
Total 45 questions

Select the true statements about the json.-dumps () function. (Select two answers.)

A.

It returns a JSON string.

B.

It returns a Python entity.

C.

It takes a JSON string as its argument

D.

It takes Python data as its argument.

Which sentence about the ©property decorator is false?

A.

The ©property decorator should be defined after the method that is responsible for setting an encapsulated attribute.

B.

The @property decorator designates a method which is responsible for returning an attribute value

C.

The ©property decorator marks the method whose name will be used as the name of the instance attribute

D.

The ©property decorator should be defined before the methods that are responsible for setting and deleting an encapsulated attribute

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?

A.

csv.QUOTE_MINIMAL

B.

csv.QUOTE_NONE

C.

svQUOTE_ALL

D.

csv.QUOTE_NONNUMERIC