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

Assuming that the following assignment has been successfully executed:

My_list – [1, 1, 2, 3]

Select the expressions which will not raise any exception.

(Select two expressions.)

A.

my_list[-10]

B.

my_list|my_Li1st | 3| I

C.

my list [6]

D.

my_List- [0:1]

Which of the following sentences are true? (Select two answers.)

A.

Function is obliged to return a value.

B.

Every function must be defined before it is invoked.

C.

It's possible to define more than one function of the same name.

D.

A function can invoke itself.

Which of the following are the names of Python passing argument styles?

(Select two answers.)

A.

keyword

B.

reference

C.

indicatory

D.

positional

Arrange the code boxes in the correct positions in order to obtain a loop which executes its body with the counter variable going through values 1, 3 , and 5 (in the same order)

Arrange the code boxes in the correct positions to form a conditional instruction which guarantees that a certain statement is executed when the speed variable is less than 50.0.

What is the expected output of the following code?

A.

The code produces no output.

B.

* * *

C.

* *

D.

*

Drag and drop the literals to match their data type names.

What is true about exceptions and debugging? (Select two answers.)

A.

A tool that allows you to precisely trace program execution is called a debugger.

B.

If some Python code is executed without errors, this proves that there are no errors in it.

C.

One try-except block may contain more than one except branch.

D.

The default (anonymous) except branch cannot be the last branch in the try-except block.

Drag and drop the conditional expressions to obtain a code which outputs * to the screen.

(Note: some code boxes will not be used.)

What is the expected result of the following code?

A.

The code is erroneous and cannot be run.

B.

20

C.

10

D.

30