Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

Python Institute PCEP-30-02 - PCEP - Certified Entry-Level Python Programmer

Page: 1 / 2
Total 42 questions

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

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

What happens when the user runs the following code?

A.

The code outputs 3.

B.

The code outputs 2.

C.

The code enters an infinite loop.

D.

The code outputs 1.

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

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

A set of rules which defines the ways in which words can be coupled in sentences is called:

A.

lexis

B.

syntax

C.

semantics

D.

dictionary

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

(Select two answers.)

A.

keyword

B.

reference

C.

indicatory

D.

positional

What is the expected result of running the following code?

A.

The code prints 1 .

B.

The code prints 2

C.

The code raises an unhandled exception.

D.

The code prints 0

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

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

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.

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