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

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

Exam PCEP-30-02 All Questions
Exam PCEP-30-02 Premium Access

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

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

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.

Expert Solution
Questions # 12:

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

(Select two answers.)

Options:

A.

keyword

B.

reference

C.

indicatory

D.

positional

Expert Solution
Questions # 13:

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.

Question # 13

Options:

Expert Solution
Questions # 14:

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 # 14

Options:

Expert Solution
Questions # 15:

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

Question # 15

Options:

Expert Solution
Questions # 16:

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

Expert Solution
Questions # 17:

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

Question # 17

Options:

Expert Solution
Questions # 18:

What is the expected output of the following code?

Question # 18

Options:

A.

The code outputs nothing.

B.

3

C.

1

D.

4

Expert Solution
Questions # 19:

Assuming that the following assignment has been successfully executed:

Question # 19

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

Expert Solution
Questions # 20:

What is the expected output of the following code?

Question # 20

Options:

A.

The code produces no output.

B.

* * *

C.

* *

D.

*

Expert Solution
Viewing page 2 out of 2 pages
Viewing questions 11-20 out of questions