Spring Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Certified Associate in Python Programming

Last Update 6 hours ago Total Questions : 154

The Certified Associate in Python Programming content is now fully updated, with all current exam questions added 6 hours ago. Deciding to include PCAP-31-03 practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our PCAP-31-03 exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these PCAP-31-03 sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any Certified Associate in Python Programming practice test comfortably within the allotted time.

Question # 11

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

A.

11 == ' 011 '

B.

3 * ' a ' < ' a ' * 2

C.

' abc ' .upper () < ' abc '

D.

' 1 ' + ' 2 ' * 2 !=2 ' 12 '

Question # 12

Assuming that the snippet below has been executed successfully, which of the following expressions will evaluate to True? (Select two answers)

string = ' SKY ' (:: -1)

string = string (-1)

A.

string is None

B.

string (0) == string (-1

C.

string (0) == ' Y '

D.

len (string) == 1

Question # 13

What is the expected behavior of the following code?

A.

the code is erroneous and it will not execute

B.

it outputs ' tuple ' object does not support item assignment

C.

0it outputs list assignment index out of range

D.

it outputs None

Question # 14

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

A.

BB

B.

CC

C.

AA

D.

BC

Question # 15

How many lines does the following snippet output?

A.

three

B.

one

C.

two

D.

four

Question # 16

What is the expected output of the following snippet?

A.

the code is erroneous

B.

3

C.

7

D.

15

Question # 17

What is the expected behavior of the following code?

x - 3 % 1

y -1 if x > else 0

print (y)

A.

it outputs -1

B.

the code is erroneous and it will not execute

C.

it outputs 1

D.

it outputs 0

Question # 18

Assuming that the code below has been placed inside a file named code.py and executed successfully which of the following expressions evaluate to True? (Select two answers)

A.

str (Object) = ' Object1

B.

Class A.__module__ == ' main__ '

C.

len (ClassB.__bases__) == 2

D.

__name__== ' __main__ '

Question # 19

What is the output of the following piece of code?

A.

ant ' bat ' camel

B.

ant " bat " camel

C.

antbatcamel

D.

ant bat camel

Question # 20

What is the expected behavior of the following code?

A.

it outputs 2

B.

the code is erroneous and it will not execute

C.

it outputs 1

D.

it outputs 3

Go to page: