UNDERSTAND · PRACTISE · REVIEW
A variable can change during execution. Write a trace table with one row per operation. Read assignment as updating a value, not as a mathematical equation that must stay true forever.
A worked example
Try this learning routine
- Read the explanation and say the idea in your own words.
- Cover the worked answer and attempt a similar question.
- Check each step, including units or word meaning.
- Record one mistake and retry a new example later.
Independent practice
Choose one answer for each question and write a reason. These are foundation activities, not a complete board examination.
Pseudocode: x ← 1; x ← x + 4; output x. What is output?
Pseudocode: x ← 2; x ← x + 4; output x. What is output?
Pseudocode: x ← 3; x ← x + 4; output x. What is output?
Pseudocode: x ← 4; x ← x + 4; output x. What is output?
Pseudocode: x ← 5; x ← x + 4; output x. What is output?
Pseudocode: x ← 6; x ← x + 4; output x. What is output?
Answers and explanations
- 5 — Assignment replaces x with its old value plus 4: 1 + 4 = 5.
- 6 — Assignment replaces x with its old value plus 4: 2 + 4 = 6.
- 7 — Assignment replaces x with its old value plus 4: 3 + 4 = 7.
- 8 — Assignment replaces x with its old value plus 4: 4 + 4 = 8.
- 9 — Assignment replaces x with its old value plus 4: 5 + 4 = 9.
- 10 — Assignment replaces x with its old value plus 4: 6 + 4 = 10.
Your next step
Use the same idea in a fresh example. Bring the method and your questions to a discussion with TRICEF, rather than relying on a score alone.
Original TRICEF Academy practice material. Not an official board paper. Open the answer section before printing if you want the answer key included.