
Python InstitutePCEP - Certified Entry-Level Python Programmer
Domain 3Objective 4
PCEP-30-02 3.4 Operate with Strings PCEP-30 Practice Questions (Page 1)
Part of the Data Collections Tuples, Dictionaries, Lists, and Strings domain, which accounts for 25% of the PCEP-30 exam. Python Institute does not publish an official question count, but from its 45-minute exam (~20–30 total, ~5–8 in this domain), expect 1–2 from this objective — we provide 19 practice questions to prepare you well beyond it. (estimate)
19questions here
4free pages
9concepts
25%of the exam
Questions 1–5
- 1
Which quoting style is most appropriate for creating a string that spans multiple lines and preserves line breaks?
Select an answer first - 2
Which operation creates a new string rather than modifying the original?
Select an answer first - 3
A developer needs to create a string that contains a backslash character. Which escape sequence represents a single backslash?
Select an answer first - 4
A developer has a string `s = "programming"` and needs to extract the substring "gram" (indices 3 through 6). Which slice expression produces this?
Select an answer first - 5
A developer needs to create a string that contains a tab character followed by the word 'indented'. Which string literal correctly represents this?
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. “PCEP-30” is a trademark of its owner, used for identification only.