Card 21: Exam Technique
Module 7: Expert Techniques
1 The Examiner's Secret
Examiners don't read every line of code. They look for Marking Points.
IPO + Loop is the magic formula for 6-mark questions:
- Input (Ask for data) - 1 Mark
- Process (Do the math/logic) - 2 Marks
- Output (Show the result) - 1 Mark
- Loop (Repeat until done) - 1-2 Marks
2 Worked Example
"Write an algorithm to calculate ticket prices." (6 Marks)
PREDICT: Mark This Code
A student wrote this for a "Positive Number" check. How many marks (out of 3)?
if num > 0:
print("Positive")
Input Required
🥉 The Broken Logic
Examiners love "Off By One" errors or incorrect logic operators.
This code should loop while number is NOT 10.
But it uses or instead of != (or similar logic). Fix it.
🥈 Predict the Output
Examiners ask you to "Trace" loops. Predict what total will be.
Task: Run the code and see if you were right. (Correct answer is printed).
🥇 The 6-Mark Algorithm
Question: Write a program that asks for a Password.
- It must be longer than 5 letters (Validation).
- It must NOT be "password" (Security).
- Keep asking until valid.
- Print "Access Granted" at the end.