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

Assuming that the math module has been successfully imported, which of the following expressions evaluate to True? (Select two answers)

A.

math. hypot (3,4) == math.sqrt (25)

B.

math. hypot (2,5) == math.truec (2.5)

C.

math. hypot (2,5) == math.true (2.5)

D.

math. cell (2,5) == math.floor (2.5)

The first parameter of each method:

A.

holds a reference to the currently processed object

B.

is always set to None

C.

is set to a unique random value

D.

is set by the first argument's value

What can you do if you don't like a long package path tike this one0 import alpha.beta.gamma.delta.epsiIon.zeta

A.

you can make an alias for the name using the a 1 i a s keyword

B.

nothing; you need to come to terms with it

C.

you can shorten it to alpha. zeta and Python will find the proper connection

D.

you can make an alias for the name using die as keyword

Which of the following invocations are valid? (Select two answers)

A.

rfind("python","r")

B.

sorted("python")

C.

"python".sort ()

D.

"python".index("th")

Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers.)

A.

a is not None

B.

a ! =b

C.

b () ==4

D.

a () == 4

What is a true about python class constructors? (Select two answers)

A.

the constructor must have at least one parameter

B.

the constructor must return a value other than None

C.

the constructor is a method named_init_

D.

there can the more than one constructor in a Python class.

Is it possible to safely check if a class/object has a certain attribute?

A.

yes, by using the hasattr attribute

B.

yes, by using the hasattr ( ) method

C.

yes, by using the hassattr ( ) function

D.

no, it is not possible

What can you do if you don’t like a long package path like this one?

A.

you can make an alias for the name using the alias keyword

B.

nothing, you need to come to terms with it

C.

you can shorten it to alpha. zeta and Python will find the proper connection

D.

you can make an alias for the name using the as keyword

With regards to the directory structure below, select the proper forms of the directives in order to import module_a. (Select two answers)

A.

import pypack.module_a

B.

import module_a from pypack

C.

import module_a

D.

from pypack import module_a

What is the expected behavior of the following code?

It will:

A.

print 0

B.

cause a runtime exception

C.

prints 3

D.

print an empty line