Halloween Special Sale - 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: best70

Page: 1 / 5
Total 46 questions
Exam Code: PCAP-31-03                Update: Oct 31, 2025
Exam Name: Certified Associate in Python Programming

Python Institute Certified Associate in Python Programming PCAP-31-03 Exam Dumps: Updated Questions & Answers (October 2025)

Question # 1

What is the expected behavior of the following code?

A.

the code is erroneus and it will not execute

B.

it outputs [2, 4]

C.

it outputs [4, 2]

D.

it outputs [0, 1, 2, 3, 4]

Question # 2

Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers)

A.

len(a)== len (b)

B.

a [0]-1 ==b [0]

C.

a[0] = b[0]

D.

b[0] - 1 == a[0]

Question # 3

What is the expected out of the following code of the file named zero_length_existing_file is a zero-length file located inside the working directory?

A.

0

B.

-1

C.

an errno value corresponding to file not found

D.

2

Question # 4

What is the expected behavior of the following code?

A.

it outputs 6

B.

it outputs 1

C.

it outputs 3

D.

it raises an exception

Question # 5

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

A.

is instance(obj_b,C)

B.

C._C__VarA == 2

C.

has atr (B, 'get')

D.

obj_c.get() == 2

Question # 6

If you need a function that does nothing, what would you use instead of XXX? (Select two answers)

def idler ( ):

XXX

A.

pass

B.

return

C.

exit

D.

None

Question # 7

Files with the suffix .pyc contain:

A.

Python 4 source code

B.

backups

C.

temporary data

D.

semi-compiled Python code

Question # 8

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

A.

'var' in Object.__dict__

B.

'prop' in Class.__dict

C.

len(Object.__diet__) == 1

D.

'var1 in Class, dict

Question # 9

Assuming that the following code has been executed successfully, selected the expression which evaluate to True (Select two answers)

A.

a ( ) == 4

B.

a is not None

C.

b ( ) == 4

D.

a ! = b

Question # 10

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

Page: 1 / 5
Total 46 questions

Most Popular Certification Exams

Payment

       

Contact us

dumpscollection live chat

Site Secure

mcafee secure

TESTED 31 Oct 2025