GRADE 9 · COMPUTING · UNIT 1 · LESSON 1.2

Computational thinking and programming

Iteration

Read a little. Try the workbook. Check your answers. Choose one section below to get started.

14 fillable worksheet pagesRead at your own pace

LET’S LOOK, THINK AND TRY

Iteration

I can…
  • Recognise repetition in everyday processes and algorithms
  • Trace a count-controlled loop including end conditions

Identify the repeated body

Iteration repeats a sequence of instructions. A count-controlled loop has a known set of counter values. An increment adds a stated amount; a decrement subtracts one. Write each counter value and each updated total in a trace table. Keep instructions that run once outside the repeated body.

Make the stopping convention explicit

In this workbook, FOR n = start TO end includes both endpoints and increases n by one. If start is greater than end, this increasing loop runs zero times. This is the workbook convention, not Python range syntax. A loop that never reaches a stopping condition may keep running or become unresponsive; it does not necessarily crash.

Original PaxaKids learning scene for Iteration. The scene supplies context, not assessed measurements or counts.
An original PaxaKids scene for this topic. Use the stated values and exact workbook diagrams for computing work.

Work through an original example

Start total at 0. In the workbook pseudocode convention, FOR n = 3 TO 6, add n to total. What is the final total?

Work through the reasoning

The counter values are 3, 4, 5 and 6. The totals after each addition are 3, 7, 12 and 18. There are four iterations, and the final total is 18. Set the initial total before the loop so it is not reset during every iteration.

Try it before the workbook

How many times does FOR n = 5 TO 8 run under the same convention?

Use the example to choose your first step. This short preparation question is separate from your workbook. Open the check clue when you are ready.

Explore the clues

Open one card at a time to review your thinking.

Remember the idea

Iteration repeats a sequence of instructions. A count-controlled loop has a known set of counter values. An increment adds a stated amount; a decrement subtracts one. Write each counter value and each updated total in a trace table. Keep instructions that run once outside the repeated body.

Check your first try

4

Both endpoints are included: 5, 6, 7 and 8 give four iterations.

Explain and check
  • Match exact code outputs, binary widths and stated units. Explain your method.
  • Check the question, rules, outputs and units. Explain why your method works.
Paxa the Fox

Think it through with Paxa!

Trace the stated rules and distinguish predictions from actual observations.

Original computing practice files

Optional small offline examples and fictional datasets, created for PaxaKids. They are supplementary practice, not publisher downloads or complete implementations of every workbook project. The page does not execute these files. Inspect code with a grown-up before using it in an approved offline environment; do not use real personal data.

Our Unit 1 learning path
  1. Lesson 1.1: Pseudocode
  2. Lesson 1.2: Iteration
  3. Lesson 1.3: Creating algorithms
  4. Lesson 1.4: Loops in text-based programming
  5. Lesson 1.5: Programming with data
  6. Lesson 1.6: Comparing algorithms
  7. Lesson 1.7: Searching algorithms
  8. Lesson 1.8: Testing
  9. Lesson 1.9: Physical computing
  10. Lesson 1.10: Word guess
  11. Lesson 1.11: Flowchart - Pseudocode - Program code
  12. Lesson 1.12: Original Paxa project: Revision challenge app
  13. Lesson 1.13: Check your progress
  14. Lesson 1.14: Computational thinking and programming - unit check
For grown-ups: using this lesson

Discuss the idea and worked example, then try the workbook. Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses. Accept a sound alternative method.

Opening or checking a worksheet does not complete a lesson. Choose “Mark lesson finished” when ready. Optional account progress saves the selected grade, lesson position and completion across devices. Personal worksheet responses stay in this tab; save your own copy before leaving.

2. Fill in your workbook

Use the original diagrams and stated conventions. Choose, write or draw on the pages, or use the larger Answer List controls. Code examples here are for tracing; this page does not execute them or connect to hardware. Use fictional data and approved supervised tools for project work.

Iteration14 student pages · original artwork

Opening your PDF…

Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.

TAKE YOUR PRACTICE OFFLINE

3. Download the student worksheet

All 14 original A4 student pages, ready for pencil-and-paper practice. Choose Review Answers to check your work on this webpage.

Student worksheet only · PDF · 6.4 MiB · No answer key included

Download worksheet PDF ↓

TRY FIRST, THEN CHECK TOGETHER

Download the student worksheet →

4. Answers & guidance

Finished your try? Open the guide and compare one worksheet at a time. Your own words may be different and still explain the right idea.

Shown on this webpage only. There is no answer-key download, and this guide is left out when printing the page.

Show answers for all 14 worksheets

Worksheet 1

  1. Question 1: Which task naturally uses a count-controlled loop? Print one label for each of six numbered folders

Worksheet 2

  1. Question 2: What does increment by 1 mean? Increase the value by 1
  2. Question 3: Which detail helps determine the number of repetitions? Start, end rule and step

Worksheet 3

  1. Question 4: First output 2
  2. Question 5: Second output 3
  3. Question 6: Third output 4
  4. Question 7: Fourth output 5
  5. Question 8: Fifth output 6
  6. Question 9: Sixth output 7

Worksheet 4

  1. Question 10: Total after n = 2 2
  2. Question 11: Total after n = 4 9
  3. Question 12: Total after n = 6 20
  4. Question 13: Final displayed total 27
  5. Question 14: What would resetting total to 0 inside every iteration do? Discard earlier contributions to the total

Worksheet 5

  1. Question 15: What happens when the condition is tested with n = 8? Follow False to STOP

Worksheet 6

  1. Question 16: Why must the return path avoid the initialisation step? Repeating initialisation can keep resetting the counter

Worksheet 7

  1. Question 17: A: number of outputs 3
  2. Question 18: A: last output 4
  3. Question 19: A: counter value at the first false test 5
  4. Question 20: B: number of outputs 4
  5. Question 21: B: last output 5
  6. Question 22: B: counter value at the first false test 6

Worksheet 8

  1. Question 23: What is the first displayed number? 0
  2. Question 24: How many numbers are displayed? 5
  3. Question 25: Which single change meets the specification? Set the initial counter to 1

Worksheet 9

  1. Question 26: First output 5
  2. Question 27: Last output 1
  3. Question 28: Number of body executions 5
  4. Question 29: n at the first false test 0
  5. Question 30: Which update makes progress toward stopping? SET n = n - 1

Worksheet 10

  1. Question 31: What value is displayed on every repetition? 5
  2. Question 32: Which instruction causes the loss of progress? SET n = 5 inside the loop

Worksheet 11

  1. Question 33: Case A: number of outputs 6
  2. Question 34: Case B: number of outputs 1
  3. Question 35: Case C: number of outputs 0
  4. Question 36: Case D: number of outputs 4

Worksheet 12

  1. Question 37: How many times is Ready displayed? 1
  2. Question 38: How many numeric values are displayed? 3
  3. Question 39: Which output order is correct? Ready, 2, 3, 4, Done

Worksheet 13

  1. Question 40: Draw the countdown flowchart. Beside it, write equivalent pseudocode and a compact trace including the final failed condition check. Expected design: START; SET n = 5; test n >= 1; True leads to OUTPUT n then SET n = n - 1 and returns to the test; False leads to STOP. Equivalent WHILE pseudocode or another clearly defined equivalent is accepted. Trace shows n values 5, 4, 3, 2 and 1 all passing, then 0 failing, with five outputs. Check start/stop, storage, output and decision shapes, legible labels, arrowheads, both branches, no unintended reset and a correct return path. A complete correct alternative using a stop condition may reverse the branch labels. Judge the submitted logic and its trace together. Grown-up review; discuss your evidence and reasoning.

Worksheet 14

  1. Question 41: Explain why < 5 and <= 5 produce different outputs when starting at 2 with step +1. Then correct the page 8 loop to output 1 through 4, and justify the correction using its first, last and stopping values. At start 2 with step +1, the < 5 loop displays 2, 3, 4, then fails at 5; <= 5 displays 2, 3, 4, 5, then fails at 6. Equality accounts for the extra output. For page 8, change the initial counter from 0 to 1 while keeping <= 4 and +1. The corrected loop displays 1, 2, 3, 4 and first fails at 5. Explain that the original incorrectly included 0 and ran five times. Accept other complete solutions that meet the exact output sequence with explicit conditions and updates. Give qualitative feedback on specification, trace, boundary explanation and correction. Do not treat predicted traces as actual software observations. Grown-up review; discuss your evidence and reasoning.
Back to my workbook ↑

Curriculum & workbook reference

Computing for your homeschool day

Explore Iteration with this free Grade 9 Computing lesson. Read one idea together, try the fillable workbook and return to review at your own pace. Download the same student worksheet PDF for pencil-and-paper practice.

Fit learning around your family’s day. There is no timer and no sign-up is needed to use the lesson. An optional account saves your lesson position and completion across devices. Workbook responses and drawings stay in this tab; save a copy of your responses before leaving.

Understand your results

Closed answers are checked in your browser. Drawings and written explanations need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.

Choose Review Answers after trying the activity. The guide stays on the webpage; the worksheet download contains only the student pages.

For programme background, visit the Cambridge Lower Secondary Computing overview. PaxaKids provides independent original companion practice.

The original practice follows the source topic teaching.

The page references identify the reviewed actual supplied book teaching and related practice. Only the cited Learner’s Book teaching pages are listed here. No matching publisher Workbook 9 was supplied or cited. The original PaxaKids workbook is the student download; no textbook scan is published. Explanations, worked models and student workbooks here are original PaxaKids companion material.

The source topic number is preserved.