Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

Python InstitutePCAP - Certified Associate Python Programmer

Domain 3Objective 2

PCAP-31-03 3.2 Operate on Strings PCAP-31 Practice Questions (Page 2)

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
10concepts
18%of the exam

Questions 6–10

  1. 6foundation · easy

    What does the chr() function return when given an integer argument?

    Select an answer first
  2. 7foundation · medium

    Which expression evaluates to the string "ababab"?

    Select an answer first
  3. 8foundation · easy

    Which of the following calls to chr() would return the character 'a'?

    Select an answer first
  4. 9application · medium

    A developer needs to check whether a string `s` contains the substring 'py' anywhere in it. Which expression correctly performs this check?

    Select an answer first
  5. 10expert · medium

    A developer is optimizing a function that builds a large string by concatenating many parts in a loop. The current implementation is slow. Which approach is most likely to improve performance?

    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.