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

Free Python Institute PCAP-31-03 Practice Exam with Questions & Answers | Set: 3

Questions 21

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

PCAP-31-03 Question 21

Options:
A.

a is not None

B.

a ! =b

C.

b () ==4

D.

a () == 4

Questions 22

What is the expected behavior of the following code?

PCAP-31-03 Question 22

Options:
A.

it outputs 0

B.

it outputs 1

C.

it raises an exception

D.

it outputs 2

Questions 23

Which of the following statements are true? (Select two answers)

Options:
A.

a code point is a point inside the code when execution stops immediately

B.

an escape sequence can be recognized by the # sign put in front of it.

C.

UTF-8 is one of the ways of representing UNICODE code points.

D.

ASCII is the name of a character coding standard

Questions 24

What is the expected behavior of the following code?

PCAP-31-03 Question 24

Options:
A.

it outputs 1

B.

it outputs 2

C.

the code is erroneous and it will not execute

D.

it outputs 3

Questions 25

What is the output of the following piece of code?

PCAP-31-03 Question 25

Options:
A.

ant'bat'camel

B.

ant"bat"camel

C.

antbatcamel

D.

ant bat camel

Questions 26

Assuming that the math module has been successfully imported, which of the following expressions evaluate to True? (Select two answers)

Options:
A.

math. hypot (3,4) == math.sqrt (25)

B.

math. hypot (2,5) == math.truec (2.5)

C.

math. hypot (2,5) == math.true (2.5)

D.

math. cell (2,5) == math.floor (2.5)

Questions 27

Which of the listed actions can be applied to the following tuple? (Select two answers)

Options:
A.

tup [:]

B.

tup.append (0)

C.

tup [0]

D.

del tup

Questions 28

What is the expected behavior of the following code?

PCAP-31-03 Question 28

It will:

Options:
A.

print 4321

B.

print

C.

cause a runtime exception

D.

print 1234

Questions 29

What is the expected behavior of the following code?

PCAP-31-03 Question 29

Options:
A.

it outputs 1

B.

it outputs 0

C.

it raises an exception

D.

it outputs 2

Questions 30

Files with the suffix .pyc contain:

Options:
A.

Python 4 source code

B.

backups

C.

temporary data

D.

semi-compiled Python code

Exam Code: PCAP-31-03
Certification Provider: Python Institute
Exam Name: Certified Associate in Python Programming
Last Update: Jul 12, 2025
Questions: 147

Python Institute Free Exams

Python Institute Free Exams
Examstrack offers free Python Institute exam materials and practice tests to aid your Python Institute certification journey.