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

PCEP-30-02 Questions and Answers

Question # 6

What happens when the user runs the following code?

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.

Full Access
Question # 7

What is the expected output of the following code?

A.

1

B.

The code raises an unhandled exception.

C.

False

D.

('Fermi ', '2021', 'False')

Full Access
Question # 8

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

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.

Full Access
Question # 9

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
Question # 10

What is the expected output of the following code?

A.

The code outputs nothing.

B.

3

C.

1

D.

4

Full Access
Question # 11

Python Is an example of which programming language category?

A.

interpreted

B.

assembly

C.

compiled

D.

machine

Full Access
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.

Full Access