Summer Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: wrap60

Python Institute PCEP-30-02 Dumps

Page: 1 / 4
Total 42 questions

PCEP - Certified Entry-Level Python Programmer Questions and Answers

Question 1

What happens when the user runs the following code?

as

Options:

A.

The code outputs 3.

B.

The code outputs 2.

C.

The code enters an infinite loop.

D.

The code outputs 1.

Question 2

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

Options:

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.

Question 3

What is the expected output of the following code?

as

Options:

A.

5

B.

4

C.

6

D.

The code raises an exception and outputs nothing.

Question 4

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.

as

Options:

Question 5

What is the expected result of the following code?

as

Options:

A.

The code is erroneous and cannot be run.

B.

20

C.

10

D.

30

Question 6

What is the expected output of the following code?

as

Options:

A.

2

B.

0

C.

3

D.

1

Question 7

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

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

as

Options:

Question 8

What happens when the user runs the following code?

as

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 9

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

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

as

Options:

Question 10

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

as

Options:

Question 11

What is the expected output of the following code?

as

Options:

A.

The code is erroneous and cannot be run.

B.

ppt

C.

213

D.

pizzapastafolpetti

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 speed variable is less than 50.0.

as

Options:

Page: 1 / 4
Total 42 questions