Big Halloween Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Pass the Python Institute PCEP PCEP-30-02 Questions and answers with CertsForce

Viewing page 1 out of 2 pages
Viewing questions 1-10 out of questions
Questions # 1:

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.

Question # 1


Expert Solution
Questions # 2:

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

Question # 2


Expert Solution
Questions # 3:

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.

Question # 3


Expert Solution
Questions # 4:

What is true about exceptions in Python? (Select two answers.)

Options:

A.

According 10 Python terminology, exceptions are thrown


B.

According to Python terminology, exceptions are raised


C.

Python's philosophy encourages developers to make all possible efforts to protect the program from the occurrence of an exception.


D.

Not more than one except branch can be executed inside one try-except block.


Expert Solution
Questions # 5:

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

A)

Question # 5

B)

Question # 5

C)

Question # 5

D)

Question # 5

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


Expert Solution
Questions # 6:

Which of the following expressions evaluate to a non-zero result? (Select two answers.)

Options:

A.

2 ** 3 / A - 2


B.

4 / 2 * * 3 - 2


C.

1 * * 3 / 4 - 1


D.

1 * 4 // 2 ** 3


Expert Solution
Questions # 7:

What is the expected output of the following code?

Question # 7

Options:

A.

The code is erroneous and cannot be run.


B.

12.849.923.2


C.

293


D.

yh


Expert Solution
Questions # 8:

What is the expected result of running the following code?

Question # 8

Options:

A.

The code prints 1 .


B.

The code prints 2


C.

The code raises an unhandled exception.


D.

The code prints 0


Expert Solution
Questions # 9:

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.

Question # 9


Expert Solution
Questions # 10:

A program written in a high-level programming language is called:

Options:

A.

a binary code


B.

machine code


C.

the ASCI I code


D.

a source code


Expert Solution
Viewing page 1 out of 2 pages
Viewing questions 1-10 out of questions