Summer Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: myex65

Home > Python Institute > PCEP > PCEP-30-02

PCEP-30-02 PCEP - Certified Entry-Level Python Programmer Question and Answers

Question # 4

What is the expected output of the following code?

A.

The code outputs nothing.

B.

3

C.

1

D.

4

Full Access
Question # 5

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]

Full Access
Question # 6

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

(Select two answers.)

A.

keyword

B.

reference

C.

indicatory

D.

positional

Full Access
Question # 7

Assuming that the phonc_dir dictionary contains namemumber pairs, arrange the code boxes to create a valid line of code which retrieves Martin Eden's phone number, and assigns it to the number variable.

Full Access
Question # 8

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.

Full Access
Question # 9

Arrange the code boxes in the correct positions to form a conditional instruction which guarantees that a certain statement is executed when the temperature variable is equal to 0. 0.

Full Access
Question # 10

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 # 11

Arrange the binary numeric operators in the order which reflects their priorities, where the top-most position has the highest priority and the bottom-most position has the lowest priority.

Full Access
Question # 12

What is the expected result of the following code?

A.

The code is erroneous and cannot be run.

B.

20

C.

10

D.

30

Full Access