Reading code as a list of steps
Code is a list of steps with choices and repeats. A tester who can read ten lines can say which test reaches which line, without writing any code.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: reading a recipe. A recipe is a list of steps in order. Some steps are choices, such as "if the sauce is thin, add flour". Some steps repeat, such as "stir for five minutes". You can follow a recipe without being a chef.
Daily List is a to-do list app. Leo, the developer, wrote a few lines that decide what the reminder says. Tom, the tester, has never read code before. He is asked to read those lines and say what they do.
Those lines are , the written steps a computer follows. They sit inside a function, a named block that takes inputs and gives back an answer. One step repeats, and that is a loop.
Tom finds that the code reads like a recipe. The steps go top to bottom. The choices start with the word if. He does not need to write anything. He only needs to say, in plain words, which steps run for which input.
The picture has a limit. A cook can taste the sauce and decide. Code cannot taste. It follows the choices exactly as written, even when the writer made a slip.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)
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 Reading a small piece of code as plain steps so a test can be chosen for each way out.
- Name and inputs
- Ways out
- Choices
- Loops
- Trace
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| Recipe steps in order | Lines of source code |
| The name of the dish and its ingredients | A function and its inputs |
| If the sauce is thin, add flour | An if line |
| Stir for five minutes | A loop |
WHERE THIS PICTURE STOPS
- A cook can taste and decide. Code only follows what is written.
- A recipe has one cook. Code may call other functions that need reading too.
- A recipe is read once. A trace follows each pass of a loop.
HOOK
Name, ways out, choices, loops, trace.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Ask in order: what goes in, what comes out, where it chooses, what repeats. Look for the word if first, then say each step in plain words.
| In the trick | What it stands for |
|---|---|
| Goes in | a function and its inputs |
| Comes out | the answer a function gives back |
| Chooses | an if line |
| Repeats | a loop |
TELL A FRIEND
Reading code is like reading a recipe: steps in order, choices that skip steps and loops that repeat steps.
OFTEN MIXED UP WITH Branch coverage. The lesson counts which choices tests have taken. This lesson comes first and teaches how to see the choices in the code.
PRACTISE AND KEEP
Sources for this topic — 2 sources
- Market practice
ISTQB Certified Tester Foundation Level Syllabus v4.0.1 ↗ — International Software Testing Qualifications Board · Foundation v4.0.1 section 4.3.3, printed p.43: value and limits of white-box techniques, including static use. Full primary passage read 2026-10-24; Daily List examples are synthetic.
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.
- Market practice
More Control Flow Tools (Python tutorial) ↗ — Python Software Foundation · An if statement can have zero or more elif parts and an optional else part, and a for statement goes over the items of a sequence in order (search excerpt from copies of the tutorial text, page not opened)
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.
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.