GRADE 9 · COMPUTING · UNIT 1 · LESSON 1.14
Computational thinking and programming
Computational thinking and programming - unit check
Read a little. Try the workbook. Check your answers. Choose one section below to get started.
LET’S LOOK, THINK AND TRY
Computational thinking and programming - unit check
- Trace this pseudocode: SET total = 0; FOR n = 1 TO 4; SET total = total + n*n; END FOR; OUTPUT total. Show each intermediate total.
- Write Python that prints the odd integers from 3 through 11 inclusive. Explain why the upper bound in range() is chosen as it is.
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 10 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 10 worksheets
Worksheet 1
- Question 1: Which record supports a claim that a test was actually run? The input, observed output and comparison with the expected result
Worksheet 2
- Question 2: total after n = 1 1
- Question 3: total after n = 2 5
- Question 4: total after n = 3 14
- Question 5: total after n = 4 30
Worksheet 3
- Question 6: Use the smallest integer STOP greater than 11 12
- Question 7: Number of printed values 5
- Question 8: Why is that stop value suitable? Python excludes the stop, so 11 is printed and 12 is not
Worksheet 4
- Question 9: Whole-number input 11 ACCEPT / accept
- Question 10: Whole-number input 16 ACCEPT / accept
- Question 11: Whole-number input 13 ACCEPT / accept
- Question 12: Whole-number input 10 REJECT / reject
- Question 13: Whole-number input 17 REJECT / reject
- Question 14: Text input "twelve" REJECT / reject
Worksheet 5
- Question 15: First inspected value 12
- Question 16: Second inspected value 24
- Question 17: Zero-based index of 24 5
- Question 18: What prerequisite makes this elimination rule valid? The list is sorted in the order used by the comparisons
Worksheet 6
- Question 19: Which condition expresses the warning threshold? level < 30
Worksheet 7
- Question 20: Expected text state for model reading 29 WARN / warn
- Question 21: Expected text state for model reading 30 OK / ok
- Question 22: Expected text state for model reading 101 CHECK / check
- Question 23: Which is a testable input requirement? Read a new valid model light level for each update
- Question 24: Which is a testable output requirement? Show WARN below 30 and OK at or above 30 for valid readings
Worksheet 8
- Question 25: A fault uses level <= 30. Which input exposes it? 30
- Question 26: Which age condition accepts both valid endpoints? 11 <= age <= 16
- Question 27: The list is searched for an absent value. What is a valid outcome? No match reported after all candidate positions are eliminated
Worksheet 9
- Question 28: Draw or annotate the input-decision-output algorithm. State two functional requirements and give the inputs and expected outputs for two threshold tests. Include your actual execution status or Pending. Accept two distinct observable behaviours, for example fresh light input per update and textual WARN for valid level<30, otherwise OK for valid30..100. Appropriate model input contract integer0..100; missing/out-of-range CHECK if that extension is implemented. Minimum threshold tests29->WARN and30->OK, or another below30 plus30 with correct expected states. Clear decision branches and labelled input/output; optional physical implementation uses approved safe equipment. Actual software/hardware results or Pending, no fabricated observations. Equivalent correct designs accepted. Grown-up review; discuss your evidence and reasoning.
Worksheet 10
- Question 29: Write Python that prints 3, 5, 7, 9, 11, and explain its range arguments. Explain why age 11 and age 16 need testing and how binary search finds 24. Describe one correction or further check supported by your work. Accept for n in range(3,12,2): followed by indented print(n), or an equivalent correct Python solution. Start3, excluded stop12, step2, exactlyfive outputs3,5,7,9,11. Other correct excluded stops such as13 can generate the same sequence but page3 specifically asks smallest integer above11. Square totals1,5,14,30. Endpoints11/16accepted;normal13accepted;10/17/textrejected. Binary search bounds0..6mid3value12, thenlow4high6mid5value24, resultindex5;sorted order prerequisite. Accept a justified genuine correction or clearly planned further test, with actual outcomes only when performed. Qualitative feedback without marks. 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 Computational thinking and programming - unit check 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 check 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 original unit check follows the source unit. Its website lesson number is a PaxaKids navigation label, not an extra publisher-numbered topic.
