Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = getmirror

Pass the Python Institute PCEP PCEP-30-02 Questions and answers with ExamsMirror

Practice at least 50% of the questions to maximize your chances of passing.
Exam PCEP-30-02 Premium Access

View all detail and faqs for the PCEP-30-02 exam


786 Students Passed

85% Average Score

96% Same Questions
Viewing page 2 out of 2 pages
Viewing questions 11-20 out of questions
Questions # 11:

A program written in a high-level programming language is called:

Options:

A.

a binary code

B.

machine code

C.

the ASCI I code

D.

a source code

Questions # 12:

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

Options:

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.

Questions # 13:

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.

Questions # 14:

Assuming that the following assignment has been successfully executed:

Question # 14

Which of the following expressions evaluate to True? (Select two expressions.)

Options:

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

Questions # 15:

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 counter variable.

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

Question # 15

Options:

Questions # 16:

What is the expected output of the following code?

Question # 16

Options:

A.

The code is erroneous and cannot be run.

B.

ppt

C.

213

D.

pizzapastafolpetti

Questions # 17:

What is the expected result of the following code?

Question # 17

Options:

A.

The code is erroneous and cannot be run.

B.

20

C.

10

D.

30

Questions # 18:

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

Questions # 19:

What is the expected output of the following code?

Question # 19

Options:

A.

5

B.

4

C.

6

D.

The code raises an exception and outputs nothing.

Questions # 20:

Assuming that the following assignment has been successfully executed:

My_list – [1, 1, 2, 3]

Select the expressions which will not raise any exception.

(Select two expressions.)

Options:

A.

my_list[-10]

B.

my_list|my_Li1st | 3| I

C.

my list [6]

D.

my_List- [0:1]

Viewing page 2 out of 2 pages
Viewing questions 11-20 out of questions
TOP CODES

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.