Summer Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Selected PCAP-31-03 PCAP Questions Answers

Page: 9 / 12
Total 154 questions

Certified Associate in Python Programming Questions and Answers

Question 33

Assuming that the following code has been executed successfully, selected the expression which evaluate to True (Select two answers)

Options:

A.

a ( ) == 4

B.

a is not None

C.

b ( ) == 4

D.

a ! = b

Question 34

Assuming that the following snippet has been successfully executed, which of the equations are True? (Select two answers)

Options:

A.

len(a) == len (b)

B.

b[0] fe- 1 == a[0]

C.

a [0] == b [0]

D.

a[0] + 1 == b[0]

Question 35

What is the expected behavior of the following code?

Options:

A.

it raises an exception

B.

it outputs True

C.

it outputs False

D.

it outputs nothing

Question 36

What is the expected output of the following snippet?

Options:

A.

the code is erroneous

B.

3

C.

7

D.

15

Page: 9 / 12
Total 154 questions