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

Free and Premium Python Institute PCEP-30-02 Dumps Questions Answers

Page: 1 / 3
Total 42 questions

PCEP - Certified Entry-Level Python Programmer Questions and Answers

Question 1

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.

Options:

Buy Now
Question 2

What happens when the user runs the following code?

Options:

A.

The program outputs one asterisk ( * ) to the screen.

B.

The program outputs five asterisks ( ***** ) to the screen.

C.

The program outputs three asterisks( *** ) to the screen.

D.

The program enters an infinite loop.

Question 3

What is the expected output of the following code?

Options:

A.

0

B.

2021

C.

The code raises an unhandled exception.

D.

('Ampere*. '2021', 'False')

Question 4

What happens when the user runs the following code?

Options:

A.

The program outputs three asterisks ( *** )to the screen.

B.

The program outputs one asterisk ( * ) to the screen.

C.

The program outputs five asterisks ( ***** ) to the screen.

D.

The program enters an infinite loop.

Question 5

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

Options:

Question 6

How many hashes (+) does the code output to the screen?

Options:

A.

one

B.

zero (the code outputs nothing)

C.

five

D.

three

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.

Options:

Question 8

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

Options:

Question 9

Drag and drop the code boxes in order to build a program which prints Unavailable to the screen.

(Note: one code box will not be used.)

Options:

Question 10

What is the expected output of the following code?

Options:

A.

The code is erroneous and cannot be run.

B.

ppt

C.

213

D.

pizzapastafolpetti

Question 11

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)

Options:

Question 12

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.

Options:

Page: 1 / 3
Total 42 questions