TRICEF ACADEMY · PADAPPAI

Trace a program one assignment at a time

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

For x ← 3 followed by x ← x + 4, the final value is 7. The old value 3 is used to calculate the new value.

Try this learning routine

  1. Read the explanation and say the idea in your own words.
  2. Cover the worked answer and attempt a similar question.
  3. Check each step, including units or word meaning.
  4. 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.

  1. Pseudocode: x ← 1; x ← x + 4; output x. What is output?

    • 2
    • 5
    • 1
    • 4
  2. Pseudocode: x ← 2; x ← x + 4; output x. What is output?

    • 6
    • 2
    • 3
    • 5
  3. Pseudocode: x ← 3; x ← x + 4; output x. What is output?

    • 7
    • 3
    • 6
    • 4
  4. Pseudocode: x ← 4; x ← x + 4; output x. What is output?

    • 7
    • 5
    • 8
    • 4
  5. Pseudocode: x ← 5; x ← x + 4; output x. What is output?

    • 9
    • 6
    • 5
    • 8
  6. Pseudocode: x ← 6; x ← x + 4; output x. What is output?

    • 9
    • 7
    • 6
    • 10
Answers and explanations
  1. 5 — Assignment replaces x with its old value plus 4: 1 + 4 = 5.
  2. 6 — Assignment replaces x with its old value plus 4: 2 + 4 = 6.
  3. 7 — Assignment replaces x with its old value plus 4: 3 + 4 = 7.
  4. 8 — Assignment replaces x with its old value plus 4: 4 + 4 = 8.
  5. 9 — Assignment replaces x with its old value plus 4: 5 + 4 = 9.
  6. 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.

Try a practice assessment

Original TRICEF Academy practice material. Not an official board paper. Open the answer section before printing if you want the answer key included.

A LITTLE MORE CLARITY

Questions, answered.

Useful details before your next step.

Can these resources be used at home?

Yes. Read the explanation, attempt independently, then check the answer. A parent or guardian should assist younger learners.

Does one score describe the learner’s whole ability?

No. A short practice check samples limited skills. Discuss the explanations and actual work when choosing the next learning step.

YOUR NEXT STEP

Let’s find the right place to begin.

Tell us the class, subject or skill you would like to explore.

Call the AcademyWhatsApp enquiry ↗