
Python InstitutePCEP - Certified Entry-Level Python Programmer
Domain 3Objective 4
PCEP-30-02 3.4 Operate with Strings PCEP-30 Practice Questions (Page 3)
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 11–15
- 11
A developer needs to define a multi-line string that preserves line breaks exactly as written. Which of the following is the most appropriate way to create this string?
Select an answer first - 12
Given the string s = "Python", what is the result of s[-1]?
Select an answer first - 13
Which escape sequence represents a tab character in a string?
Select an answer first - 14
A developer has a string `s = "Hello World"` and needs to convert it to lowercase. Which expression produces the string `"hello world"`?
Select an answer first - 15
A developer has a string `s = "Hello"` and needs to determine the number of characters in it. Which expression returns the correct value?
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.