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

A socket object is usually created by which one of the following invocations?

A.

socket. socket (socket_domain, socket_type)

B.

socket = socket. socket (socket_number)

C.

socket = socket. socket (socket_domain, socket_type, server_address)

D.

socket = socket.socket(server address)

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:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

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...

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 type in the object-oriented programming sense?

A.

It is the bottommost type that any object can inherit from.

B.

It is a built-in method that allows enumeration of composite objects

C.

It is the topmost type that any class can inherit from

D.

It is an object used to instantiate a class

What is a static method?

A.

A method that works on the class itself

B.

A method decorated with the @method trait

C.

A method that requires no parameters referring to the class itself

D.

A method that works on class objects that are instantiated

Which of the following statements regarding the __traceback__ attribute are true?

(Select two answers.)

A.

The attribute is a special method delivered by the traceback module to retrieve a full list of strings describing the traceback.

B.

The attribute can be easily handled by the traceback.format_tb() method.

C.

The attribute is owned by every exception object.

D.

The attribute is owned only by the exception objects residing in an exception chain.

What is a___traceback___?

(Select two answers )

A.

An attribute owned by every exception object

B.

A special method delivered by the traceback module to retrieve a full list of strings describing the traceback

C.

An attribute that is added to every object when the traceback module is imported

D.

An attribute that holds interesting information that is particularly useful when the programmer wants to store exception details in other objects

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()

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 ()