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

PCAP PCAP-31-03 Book

Page: 5 / 6
Total 145 questions

Certified Associate in Python Programming Questions and Answers

Question 17

Which of the listed actions can be applied to the following tuple? (Select two answers)

Options:

A.

tup [:]

B.

tup.append (0)

C.

tup [0]

D.

del tup

Question 18

What is true about Python class constructors? (Select two answers)

Options:

A.

the constructor's first parameter identifies an object currently being created

B.

the constructor cannot use the default values of the parameters

C.

the constructor can be invoked directly under strictly defined circumstances

D.

super-class constructor is invoked implicitly during constructor execution

Question 19

What is the expected behavior of the following code?

Options:

A.

it outputs 6

B.

it outputs 1

C.

it outputs 3

D.

it raises an exception

Question 20

What is the expected behavior of the following code?

Options:

A.

it outputs 2

B.

it raises an exception

C.

it outputs 3

D.

it outputs 5

Page: 5 / 6
Total 145 questions