
Python InstitutePCAP - Certified Associate Python Programmer
Domain 3Objective 1
PCAP-31-03 3.1 Understand Machine Representation of Characters PCAP-31 Practice Questions (Page 4)
Part of the Strings domain, which accounts for 18% of the PCAP-31 exam. Python Institute does not publish an official question count, but from its 65-minute exam (~25–45 total, ~5–8 in this domain), expect 2–3 from this objective — we provide 22 practice questions to prepare you well beyond it. (estimate)
22questions here
5free pages
4concepts
18%of the exam
Questions 16–20
- 16
In the context of Unicode, what is a 'code point'?
Select an answer first - 17
A Python script is processing a UTF-8 encoded file that contains a mix of ASCII and non-ASCII characters. The developer needs to determine the byte length of each line to calculate network bandwidth. Which Python operation correctly returns the number of bytes a string occupies in UTF-8?
Select an answer first - 18
A developer is writing a Python script that generates a JSON file. The JSON data contains a string with a double quote inside it. The developer needs to escape the double quote in the Python string literal. Which escape sequence should be used?
Select an answer first - 19
A developer is writing a Python script that reads a binary file and needs to decode a sequence of bytes as UTF-8. The byte sequence is b'\xc3\xa9'. What character does this represent?
Select an answer first - 20
Why is UTF-8 considered backward-compatible with ASCII?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Python Institute. “PCAP-31” is a trademark of its owner, used for identification only.