New Year Special 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 / 2
Total 30 questions

PCEP - Certified Entry-Level Python Programmer Questions and Answers

Question 1

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

Buy Now
Question 2

Python Is an example of which programming language category?

Options:

A.

interpreted

B.

assembly

C.

compiled

D.

machine

Question 3

What is true about exceptions and debugging? (Select two answers.)

Options:

A.

A tool that allows you to precisely trace program execution is called a debugger.

B.

If some Python code is executed without errors, this proves that there are no errors in it.

C.

One try-except block may contain more than one except branch.

D.

The default (anonymous) except branch cannot be the last branch in the try-except block.

Question 4

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

Options:

Question 5

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

(Select two answers.)

Options:

A.

keyword

B.

reference

C.

indicatory

D.

positional

Question 6

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 7

What is the expected output of the following code?

Options:

A.

The code produces no output.

B.

* * *

C.

* *

D.

*

Question 8

What is true about tuples? (Select two answers.)

Options:

A.

Tuples are immutable, which means that their contents cannot be changed during their lifetime.

B.

The len { } function cannot be applied to tuples.

C.

An empty tuple is written as { } .

D.

Tuples can be indexed and sliced like lists.

Question 9

What is the expected result of running the following code?

Options:

A.

The code prints 1 .

B.

The code prints 2

C.

The code raises an unhandled exception.

D.

The code prints 0

Page: 1 / 2
Total 30 questions