Labour Day Sale - Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 575363r9

Welcome To DumpsPedia

PCEP-30-02 Sample Questions Answers

Questions 4

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.

Buy Now
Questions 5

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

Options:

A.

lexis

B.

syntax

C.

semantics

D.

dictionary

Buy Now
Questions 6

What is the expected result of the following code?

Options:

A.

The code is erroneous and cannot be run.

B.

20

C.

10

D.

30

Buy Now
Questions 7

What is the expected output of the following code?

Options:

A.

5

B.

4

C.

6

D.

The code raises an exception and outputs nothing.

Buy Now
Questions 8

Assuming that the following assignment has been successfully executed:

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

Buy Now
Questions 9

Arrange the code boxes in the correct positions in order to obtain a loop which executes its body with the level variable going through values 5, 1, and 1 (in the same order).

Options:

Buy Now
Exam Code: PCEP-30-02
Exam Name: PCEP - Certified Entry-Level Python Programmer
Last Update: May 6, 2024
Questions: 30
$64  $159.99
$48  $119.99
$40  $99.99
buy now PCEP-30-02