Winter Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: v4s65

PCEP-30-02 Exam Dumps - PCEP - Certified Entry-Level Python Programmer

Go to page:
Question # 4

Insert the code boxes in the correct positions in order to build a line of code which asks the user for an integer value and assigns it to the depth variable.

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

Full Access
Question # 5

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

Full Access
Question # 6

What happens when the user runs the following code?

A.

The code outputs 3.

B.

The code outputs 2.

C.

The code enters an infinite loop.

D.

The code outputs 1.

Full Access
Question # 7

Which of the following functions can be invoked with two arguments?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 8

Assuming that the following assignment has been successfully executed:

Which of the following expressions evaluate to True? (Select two expressions.)

A.

the_List.index {"1"} in the_list

B.

1.1 in the_list |1:3 |

C.

len (the list [0:2]} <3

D.

the_list. index {'1'} -- 0

Full Access
Go to page: