Weekend Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Online PCAP-31-03 Questions Video

Page: 4 / 12
Total 154 questions

Certified Associate in Python Programming Questions and Answers

Question 13

What is the expected behavior of the following code?

Options:

A.

It outputs False

B.

It outputs nothing

C.

It outputs True

D.

It raises an exception

Question 14

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

Options:

A.

121 +1 == int ('1' + 2 * '2')

B.

float ('3.14') == str('3.'+'14')

C.

'xyz'.lower() 'XY'

D.

'8' + '8' !=2 * '8'

Question 15

The following class hierarchy is given. What is the expected out of the code?

Options:

A.

BB

B.

CC

C.

AA

D.

BC

Question 16

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

Options:

A.

str(1-1) in '012345£739'[:2]

B.

'phd' in 'alpha'

C.

'deb' not in 'abcde' [::-1]

D.

'True' not in 'False'

Page: 4 / 12
Total 154 questions