GRADE 9 · COMPUTING · UNIT 1 · LESSON 1.13
Computational thinking and programming
Check your progress
Read a little. Try the workbook. Check your answers. Choose one section below to get started.
LET’S LOOK, THINK AND TRY
Check your progress
- Design, trace, test and refine algorithms and Python programs, including repeated processes, structured data and physical computing.
- Integrate unit concepts through tracing, design, testing and evaluation.
Trace before changing a rule
INPUT supplies values, assignment stores or replaces a value, and OUTPUT displays a result. Read the workbook conventions: SET means assignment, while = inside its conditions means equality. Trace instructions in order and follow only the branch whose condition is true. A logic error can produce the wrong result even when an algorithm can run.
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.
Turn a specification into connected steps
Separate the inputs, processing rules and required outputs. Sequence gives their order. Selection chooses a path after a condition, and iteration repeats work. In a flowchart, label both exits from a decision diamond, join each path correctly and include a reachable end.
Read the indentation and range
A Python for header ends with a colon. The indented body repeats, and the unindented instruction after it runs after the loop. range(stop) starts at 0. range(start, stop) uses the specified start. With a positive step, the stop value is excluded.
Choose a type and a validation policy
Python int values represent integers; float values use floating-point representation; str values are text; bool values are True or False. A one-character string is still str, and an empty string is allowed. Either matching quote style can delimit a string. Conversion changes a suitable value into another type; it does not by itself prove that the value satisfies a task rule.
Check correctness before efficiency
Compare algorithms against the same explicit requirements and inputs. Check normal cases, repeated values and negative values where they are allowed. A short program or a low operation count is not a good solution if it gives the wrong result or changes data that should be preserved.
Match the search to the data order
Linear search checks candidates in sequence and can work on an unsorted list. Binary search relies on data ordered according to the comparison being used. When sorted records carry identities or associated data, keep those associations together. An index in the sorted list may differ from the original position.
Predict the required result first
A test plan pairs an input with the result required by the specification and a reason for choosing that case. Compare the observed result with that prediction. A program can run without crashing and still contain a logic error. Do not describe a paper prediction as an executed software test.
Connect input, processing and output
A physical computing model takes an input, applies a rule and produces an output. Define the reading units, valid range and threshold. Missing or invalid input needs a deliberate response; it should not silently become a valid zero. A simulated desk picture is not an observed hardware measurement.

Work through an original example
Original rule: eight items cost 12 credits each. Apply a 25% discount only when the subtotal is greater than 90 credits. Trace the total.
Store the subtotal 8 × 12 = 96. The condition 96 > 90 is true, so replace the payable amount with 96 × 0.75 = 72. Output 72 credits. A subtotal exactly equal to 90 would not qualify because the rule says greater than.
Try it before the workbook
What should the same model show for a reading of 21?
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
INPUT supplies values, assignment stores or replaces a value, and OUTPUT displays a result. Read the workbook conventions: SET means assignment, while = inside its conditions means equality. Trace instructions in order and follow only the branch whose condition is true. A logic error can produce the wrong result even when an algorithm can run.
Check your first try
CHECK
21 is outside the stated 0 to 20 range. Validate before applying the LOW or OK threshold.
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.

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
- Lesson 1.1: Pseudocode
- Lesson 1.2: Iteration
- Lesson 1.3: Creating algorithms
- Lesson 1.4: Loops in text-based programming
- Lesson 1.5: Programming with data
- Lesson 1.6: Comparing algorithms
- Lesson 1.7: Searching algorithms
- Lesson 1.8: Testing
- Lesson 1.9: Physical computing
- Lesson 1.10: Word guess
- Lesson 1.11: Flowchart - Pseudocode - Program code
- Lesson 1.12: Original Paxa project: Revision challenge app
- Lesson 1.13: Check your progress
- 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.
Opening your PDF…
Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.
You’ve completed the checked activities.
TAKE YOUR PRACTICE OFFLINE
3. Download the student worksheet
All 16 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.5 MiB · No answer key included
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 16 worksheets
Worksheet 1
- Question 1: What is the strongest way to support a predicted output? Trace the relevant instructions and changing values
Worksheet 2
- Question 2: Counter identifier step
- Question 3: Number of loop visits 5
- Question 4: Value added on the third visit 6
- Question 5: Final total 30
Worksheet 3
- Question 6: Final printed total 50
- Question 7: Stop argument that excludes the next candidate 19
- Question 8: Which edit removes the final visited value 16? Change stop from 19 to 16
Worksheet 4
- Question 9: Index returned for 33 6
- Question 10: Number of inspected middle items 3
Worksheet 5
- Question 11: Printed result 16
- Question 12: Which statement sends the result back to the caller? return total
Worksheet 6
- Question 13: First output 4
- Question 14: Second output CODE
- Question 15: Third output code
Worksheet 7
- Question 16: What should this rule output for model reading 35? OK
Worksheet 8
- Question 17: Smallest accepted age 7
- Question 18: Largest accepted age 13
- Question 19: Rejected neighbour below the interval 6
- Question 20: Rejected neighbour above the interval 14
- Question 21: Which test adds information beyond testing only age 10? Test both endpoints and the immediately rejected neighbours
Worksheet 9
- Question 22: First printed output: total 6
- Question 23: Second printed output: positive count 3
- Question 24: Why is zero excluded from positive? The condition is number > 0
Worksheet 10
- Question 25: Printed matching-item count 4
- Question 26: Which condition preserves both endpoints? 4 <= item <= 9
Worksheet 11
- Question 27: Printed occurrence count for target 4 3
- Question 28: Returned count if target is 8 instead 0
Worksheet 12
- Question 29: What is required after if len(name) > 3? A colon
- Question 30: After all three syntax fixes, what is printed? willow
Worksheet 13
- Question 31: Correct initial positive value 0
- Question 32: Correct range stop to visit all six items 6
- Question 33: Which corrected condition counts strictly positive values? values[index] > 0
Worksheet 14
- Question 34: Linear-search inspected-item count minus binary count 4
- Question 35: Why is ascending order important to the shown binary search? The comparison tells which half cannot contain the target
- Question 36: What happens for an absent target when low becomes greater than high? Report no match under this search contract
Worksheet 15
- Question 37: Draw or annotate your algorithm. Show a predicted trace for -4, 9, 0, 2, -7, 6, including total and positive after each input. Identify the file and write your actual run status or Pending. Accept a complete six-input accumulator and positive counter: total=0, positive=0, six iterations, one input per visit, sum every number, increment positive only for >0, print both after the loop. The listed totals are -4,5,5,7,0,6 and positive counts 0,1,1,2,2,3. Valid integer input assumption must be explicit unless recovery is implemented and tested. Design/trace is reasoning; runnable file and actual execution or Pending are distinct. Grown-up review; discuss your evidence and reasoning.
Worksheet 16
- Question 38: Explain your loop boundary, initial values and positive-value condition. Give a normal test, an all-zero test and a test with the only positive value in the final position. Describe one fault these tests could reveal and the actual results or Pending. Accept six visits and final input included, zero-initialised accumulators, strict >0. Normal example shown returns total6 and positive3; six zeros gives total0 and positive0; [-1,-1,-1,-1,-1,2] gives total-3 and positive1. Tests can expose skipped last input, >=0, wrong initial tally or misplaced output. Accept equivalent correctly calculated tests and explanations. Require honest expected-versus-observed distinction, file identity and actual execution or Pending. Qualitative feedback only. Grown-up review; discuss your evidence and reasoning.
Curriculum & workbook reference
- Cambridge Lower Secondary Computing Learner’s Book 9 — pages 11–14, 25–28, 46–49, 78–84, 89–92, 117–122, 128–131, 135–138, 155–158
Computing for your homeschool day
Explore Check your progress 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.
This original PaxaKids unit review revisits the cited teaching. It is not a reproduced publisher assessment or an additional publisher-numbered topic.
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.
This unit review follows the source unit. Its website lesson number is a PaxaKids navigation label, not an extra publisher-numbered topic.
