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

Exact2Pass Menu

Certified Associate in Python Programming

Last Update 7 hours ago Total Questions : 154

The Certified Associate in Python Programming content is now fully updated, with all current exam questions added 7 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 # 4

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

import random

v1 = random. random()

v2 = random. random()

A.

len(random.sample([1,2,3],2)) > 2

B.

v1 == v2

C.

random.choice([1,2,3]) >=1

D.

v1 >= 1

Question # 5

What will be the value of the i variable when the while e loop finishes its execution?

A.

1

B.

0

C.

2

D.

the variable becomes unavailable

Question # 6

What is the expected behavior of the following code?

A.

It outputs False

B.

It outputs nothing

C.

It outputs True

D.

It raises an exception

Question # 7

The__bases__property contains:

A.

base class locations (addr)

B.

base class objects (class)

C.

base class names (str)

D.

base class ids (int)

Question # 8

You are going to read just one character from a stream called s. Which statement would you use?

A.

ch = read(s, 1)

B.

ch = s. input(1)

C.

ch = input(s, 1)

D.

ch = s. read(l)

Question # 9

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:

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 # 10

What is the expected behavior of the following code?

A.

it outputs 3

B.

it outputs 1

C.

it outputs 6

D.

it raises an exception

Go to page: