Labour Day Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bigdisc65

Last Attempt PCAP-31-03 Questions

Page: 3 / 5
Question 12

What is the expected behavior of the following code?

Options:

A.

it outputs 0

B.

it outputs 1

C.

it raises an exception

D.

it outputs 2

Question 13

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

Options:

A.

'in not' in 'not'

B.

'in' in 'Thames'

C.

't' . upper ( ) in 'Thames'

D.

'in' in 'in'

Question 14

Which line can be used instead of the comment to cause the snippet to produce the following expected output? (Select two answers)

Expected output:

1 2 3

Code:

Options:

A.

c, b, a = b, a, c

B.

c, b, a = a, c, b

C.

a, b, c = c, a, b

D.

a, b, c = a, b, c

Question 15

What would you use instead of XXX if you want to check whether a certain ‘ key' exists in a dictionary called diet? (Select two answers)

II

if XXX:

print("Key exists")

Options:

A.

'key' in diet

B.

diet['key'] != None

C.

diet.exists('key')

D.

'key' in diet.keys()

Page: 3 / 5
Exam Code: PCAP-31-03
Exam Name: Certified Associate in Python Programming
Last Update: May 6, 2024
Questions: 145
PCAP-31-03 pdf

PCAP-31-03 PDF

$28  $80
PCAP-31-03 Engine

PCAP-31-03 Testing Engine

$33.25  $95
PCAP-31-03 PDF + Engine

PCAP-31-03 PDF + Testing Engine

$45.5  $130