TOPIC 12/1816 MINNOT STARTED

Coding questions asked of testers

Coding rounds for testers care about how you explain a small program and how you would check it. Learn the usual tasks and the test cases for each.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a spelling bee for code. In a spelling bee the word matters. But the judges also listen to how you say each letter and whether you can say the word back in a sentence. In a coding warm-up the answer matters too. So does saying how you would check it.

Daily List is a to-do list app. Mei asks Tom, "Write a function that checks if a list name reads the same backwards, and tell me how you would test it." Tom writes five lines and then says nothing.

Mei waits. Then she says, "Now say what it does, and which names you would try."

A is a short program task, such as reversing a word, used to see how you think. The talk around the code is the : saying aloud what your code does, why, and which cases you would use to check it.

The picture has limits. A spelling bee has one right spelling, but a coding task often has many good answers.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)

This lesson prepares for roles that include coding tasks. Testing also includes activities without code, and many testing roles do not require the same programming depth.

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Solving a small code task and showing how you would check it.

  1. Ask about input and output
  2. Say the plan
  3. Write in small steps
  4. List and run test cases
Plan, code, cases

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
A spelling beeA coding warm-up
Saying the word back in a sentenceThe solution walk-through
The judges' list of tricky wordsThe test cases
A word with a silent letterA bad line in the log

WHERE THIS PICTURE STOPS

  • A spelling bee has one right spelling. Code tasks often have many good answers.
  • A word is fixed. Code is run on many inputs.
  • Judges listen. Interviewers also ask follow-ups.

HOOK

Say it, write it, try it.

REMEMBER IT THIS WAY

A story beat: one picture-line that carries the order or the cause.

Tom writes five lines and then says nothing, until Mei says: now say what it does, and which names you would try.

What each part of the trick stands for
In the trickWhat it stands for
Saysay what it does
Nameswhich names you would try

Interviewers also ask follow-ups, so the talk may not wait until the code is done.

TELL A FRIEND

A spelling bee for code, where the answer matters and so does saying how you would check it.

OFTEN MIXED UP WITH Exploratory testing and error guessing. The exploring lesson teaches how to think of odd cases. This lesson uses that skill on a small piece of code.

Sources & standards — 1 source
  1. Market practice

    Built-in types: strings, sets and mappings (Python3.14 documentation) ↗ — Python Software Foundation · Python3.14 built-in types: Unicode str.casefold/isalnum and hashable-key set/dict contracts; collections.Counter is separately documented by python-docs-collections.

    Unicode str semantics, str.casefold expansion and str.isalnum classification, with set/dictionary hashable-key contracts. Used to state the coding exercises' input/transformation assumptions. · Checked 2026-11-06

    Actual Python3.14 documentation opened6November2026; library/stdtypes URL redirects to builtins/stdtypes. Counter semantics are separately documented by canonical python-docs-collections. Documentation is PSFv2; examples additionally0BSD.

PRACTISE AND KEEP

Sources for this topic — 4 sources
  1. Market practice

    collections: Container datatypes (Python documentation) ↗ — Python Software Foundation · The collections module documents Counter, which tallies items by key, and defaultdict, which supplies a default for a missing key (search excerpt, page not opened)

    Python collections.Counter is a dict subclass counting hashable keys; counts may be zero/negative and missing keys return zero. defaultdict supplies missing-key values through its factory. · Checked 2026-11-06

    Actual Python3.14 collections documentation relevant definitions/examples read6November2026. str.casefold/isalnum require the separate built-in-types source; do not claim collections documents every text algorithm.

  2. Market practice

    ISTQB Certified Tester Foundation Level Syllabus v4.0.1 ↗ — International Software Testing Qualifications Board · CTFL v4.0.1, §§1.4.4, 2.2.3, 4.2, 5.2–5.5: traceability, confirmation/regression, technique coverage, risks/results/reporting. Daily List builds and counts are an original fictional fixture.

    The examinable statement of what a foundation-level tester is expected to know: six chapters, 64 learning objectives, each tagged K1 Remember, K2 Understand or K3 Apply, plus the test-design techniques the qualification names and groups as black-box, white-box and experience-based.

    Used here for the test-craft questions a Payment Quality Assurance Analyst and a Production Support Analyst are asked. It is cited for what the syllabus says a tester must be able to do, never as a rule about how payments work. · Checked 2026-11-07

    v4.0.1 is dated 15 September 2024 and is a list of corrections to v4.0 (21 April 2023) that reworded six learning objectives — not a cosmetic reissue. 78 pages.

    Two traps this entry exists to stop. v4.0.2 is the German edition (1 March 2025, 94 pages), so sorting by version number reaches the wrong document. And the widely-repeated per-chapter question allocation "8 / 5 / 4 / 11 / 9 / 3" is wrong: it is 8 / 6 / 4 / 11 / 9 / 2, derived from three official sample-exam answer keys and confirmed against the Exam Structure Tables.

    The single most consequential detail for a question bank: white-box coverage — statement and branch — is K2 "Explain", not K3 "Apply" (FL-4.3.1, FL-4.3.2, FL-4.3.3), and MC/DC, path and condition coverage are declared out of scope in §4.3. A question asking a candidate to compute branch coverage is testing something this syllabus does not.

    Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.

    Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.

    Read from two independent PDF-to-markdown conversions mirrored on raw.githubusercontent.com. They are treated as faithful because they were produced by unrelated parties with different tooling, agree on the full 64-item objective set including wording, and reproduce the same internal inconsistency present in the source PDF. Chapter 1 reads "testware that supports" where Appendix B reads "that support". A conversion artefact does not replicate across two toolchains.

    The licence permits attributed non-commercial extracts and use as the basis for articles. Whether a site that sells a pass may rely on that is an owner's decision, not this entry's.

    7 November 2026 review: actual publisher PDF 4.0.1, 15 September 2024, 78 pages, front matter/copyright and relevant numbered operative sections 0.5–0.10 and chapters 1–6 compared with CTFLpractice lessons. Earlier mirror/search descriptions are historical access records. TheK2 white-box objectives require explanation; the source does not justify a categorical ban on small numeric illustrations that support explanation. Later Exam Rules 1.2§4.1.4 usesK2 for keyword definitions, while syllabus§0.5 usesK1; keep dated scopes distinct. No copied questions or figure assets.

  3. Market practice

    What's the best task you had at a job interview? (Ministry of Testing Club forum thread) ↗ — Ministry of Testing · Testers describe interview tasks of different sizes (search excerpt, page not opened)

    Testers describe interview tasks, among them a short exploratory session with a charter and take-home tasks of different sizes. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Market practice

    Built-in types: strings, sets and mappings (Python3.14 documentation) ↗ — Python Software Foundation · Python3.14 built-in types: Unicode str.casefold/isalnum and hashable-key set/dict contracts; collections.Counter is separately documented by python-docs-collections.

    Unicode str semantics, str.casefold expansion and str.isalnum classification, with set/dictionary hashable-key contracts. Used to state the coding exercises' input/transformation assumptions. · Checked 2026-11-06

    Actual Python3.14 documentation opened6November2026; library/stdtypes URL redirects to builtins/stdtypes. Counter semantics are separately documented by canonical python-docs-collections. Documentation is PSFv2; examples additionally0BSD.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.