Summer Sale Special - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

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 not None:), 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

If purple can be obtained from mixing red and blue, which color codes represent the two ingredients? Select two answers)

A.

#FFFFFF

B.

#0000FF

C.

#FF0000

D.

#000000

What is true about the unbind () method? (Select two answers.)

A.

It is invoked from within the events object

B.

It is invoked from within a widget's object

C.

It needs a widget's object as an argument

D.

It needs the event name as an argument

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

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.

Which of the following is not a widget property?

A.

width

B.

underline

C.

highlightthickness

D.

depth

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.

A.

Option A

B.

Option B

C.

Option C

D.

Option D

What is true about a parameter named cls?

A.

It is usually used as a reference to a class instance.

B.

It is usually used as the first parameter of a static method.

C.

It is usually used as the first parameter of a class method.

D.

It is the name of a module that delivers an abstract method decorator.

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 methods can be invoked in order to draw a triangle?

(Select two answers.)

A.

create_shape()

B.

create_line()

C.

create_triangle_shape()

D.

create_polygon()

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