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

Free Python Institute PCAP-31-03 Practice Exam with Questions & Answers

Questions 1

If you want to transform a string into a list of words, what invocation would you use? (Select two answers)

Expected output:

PCAP-31-03 Question 1

Options:
A.

s.split ()

B.

split (s, "˜ "˜)

C.

s.split ("˜ "˜)

D.

split (s)

Questions 2

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

Options:
A.

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

B.

II in ASCII stands for Internal Information

C.

ASCII is a subset of UNICODE

D.

a code point is a number assigned to a given character

Questions 3

What is the expected behavior of the following code?

PCAP-31-03 Question 3

Options:
A.

it outputs 0

B.

it outputs 1

C.

it raises an exception

D.

it outputs 2

Questions 4

Which of the following invocations are valid? (Select two answers)

Options:
A.

sorted ("python'')

B.

"python" .sort ( )

C.

sort" ("python")

D.

"python' ,find (" ")

Questions 5

What is the expected behavior of the following code?

PCAP-31-03 Question 5

Options:
A.

it outputs 2

B.

the code is erroneous and it will not execute

C.

it outputs 1

D.

it outputs 3

Questions 6

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 7

Which one of the platform module functions should be used to determine the underlying platform name?

Options:
A.

platform.uname ()

B.

platform.platform ()

C.

platform.python_version()

D.

platform.processor()

Questions 8

What is the expected behavior of the following code?

PCAP-31-03 Question 8

Options:
A.

Its outputs 321

B.

It raises an exception.

C.

It outputs 6.

D.

It outputs 123.

Questions 9

What is the expected behavior of the following code?

PCAP-31-03 Question 9

Options:
A.

It outputs 2

B.

It outputs 0.

C.

It outputs 1.

D.

It raises an exception

Questions 10

What is the expected behavior of the following code?

PCAP-31-03 Question 10

Options:
A.

It outputs 3.

B.

It outputs 1.

C.

It outputs 6.

D.

It raises an exception

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

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.