Walkthroughs,
Mistakes & Strategy
A sample PPR with full-credit and weak answers for every prompt, the most common mistakes from Chief Reader Reports, and a pre-exam checklist.
§1 Sample PPR: Budget Tracker
This sample program lets a user log expenses and warns when total spending exceeds a budget limit.
List Section
Part (i): The list expenses stores dollar amounts. Each element is one expense.
expenses ← [25, 47, 12, 88, 33, 19, 56]
Part (ii): Computes the total:
total ← 0
FOR EACH amount IN expenses
{
total ← total + amount
}
DISPLAY(total)
Procedure Section
Part (i):
PROCEDURE checkBudget(limit)
{
total ← 0
FOR EACH amount IN expenses
{
total ← total + amount
}
IF(total > limit)
{
RETURN("Over budget!")
}
ELSE
{
RETURN("Within budget")
}
}
Part (ii):
status ← checkBudget(250)
DISPLAY(status)
§2 Walkthrough: WR1 — Output & Functionality
For the list [25, 47, 12, 88, 33, 19, 56] and a budget limit of 250, my program displays "Over budget!" This output demonstrates the program's core functionality: it sums all logged expenses (totaling $280) and compares the total against the user's budget limit ($250). Because $280 exceeds $250, the procedure returns the warning message.
"My program displays a message about whether the user is over budget. This shows the program works correctly."
Why it fails: No specific output named (no message text, no numbers). "Works correctly" is not a description of functionality.
§3 Walkthrough: WR2a — Boolean Expression
The Boolean expression is total > limit. It evaluates to true when limit is 250 and expenses contains [25, 47, 12, 88, 33, 19, 56]. The FOR EACH loop accumulates a total of $280. Because 280 > 250, the expression is true and the procedure returns "Over budget!"
"The Boolean expression checks if the total is greater than the limit. It will be true if the user spends a lot of money."
Why it fails: Paraphrases instead of stating the expression. "A lot of money" is not a specific value.
§4 Walkthrough: WR2b — Logic Error
A logic error is a mistake that allows the program to run without crashing but produces incorrect output. A logic error could be introduced by changing IF(total > limit) to IF(total < limit). With [25, 47, 12, 88, 33, 19, 56] and limit 250, the original correctly returns "Over budget!" (280 > 250). The modified version returns "Within budget" because 280 < 250 is false — the opposite of intended behavior.
"If the programmer changes the code, the procedure won't work right. It might give the wrong output or crash."
Why it fails: No specific modification. "Crash" would be a runtime error, not logic. The rubric requires a logic error specifically.
§5 Walkthrough: WR2c — List Adaptation
No changes are needed. The code uses a FOR EACH loop, which iterates through every element regardless of how many there are. If new expenses are appended, the loop automatically includes them. The variable total starts at 0 and accumulates every element, so adding more elements produces a larger total without any code change.
"No changes are needed because the code already loops through the list."
Why it fails: Right conclusion but no explanation of why looping handles new elements. The rubric requires the reasoning.
§6 Common Mistakes (from Chief Reader Reports)
- Vague language. "It does stuff with the list." Use specific code names and values.
- Restating code without explaining purpose. "The line adds amount to total" — true but pointless. Explain why.
- Generic answers. If your answer works for someone else's project without changing a word, it's too generic.
- Skipping a sub-task. WR2a has three parts. Missing any one loses the point.
- Confusing error types on WR2b. A crash is runtime, not logic. The modification must produce wrong output, not stop the program.
- Saying "no change" without explaining why. The conclusion alone doesn't earn the point.
§7 Pre-Exam Checklist
- Read your PPR end to end. Find: your list, procedure, first selection statement, iteration.
- Write a draft answer for each prompt using your own PPR. Time yourself.
- For WR2a: memorize your Boolean expression and one set of values that makes it true.
- For WR2b: prepare 2–3 modifications that cause logic errors (not crashes). Have one ready.
- For WR2c: decide in advance whether your list code adapts to any size. Be ready to explain why.
- Review the verbs: identify (state directly), describe (give features), explain (give reasons).
- Use actual names from your code. Say "checkBudget", not "my procedure."
- Use specific example values. Numbers, strings, list contents.
- Trace before you write. Make sure your example produces the result you're describing.
- Length matters less than completeness. 3–5 focused sentences that hit every element earn the point.
- When in doubt, add a number or a name — not adjectives.