GRADE 8 · COMPUTING · UNIT 1 · LESSON 1.55

Computational thinking and programming

Check your progress 1

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

13 fillable worksheet pagesRead at your own pace

LET’S TRACE, REASON AND TEST

Check your progress 1

Original companion preparation, project or review

A review combines accurate representations, traces, decisions, searches, functions and communication reasoning. Use evidence to locate gaps. A confident statement without a trace or test is not the same as demonstrated understanding.

Today’s two goals
  • Trace pseudocode and interpret variable values.
  • Explain and demonstrate linear search.
Original PaxaKids illustration for Check your progress 1. Use the supplied program and data models for precise workbook facts.
An original PaxaKids workbook scene. Use the supplied programs and data for precise workbook facts.

Work through an example

For a short conditional program, show the input, comparison result, selected branch and output. That record lets another person check both the process and the final answer.

Try before your workbook

If a final output is correct, what additional evidence can show the correct branch was used?

Explore the clues

Tap one card to find out more.

Understand the idea

A review combines accurate representations, traces, decisions, searches, functions and communication reasoning. Use evidence to locate gaps. A confident statement without a trace or test is not the same as demonstrated understanding.

Concept to practise: Check your progress 1.

Work through an example

For a short conditional program, show the input, comparison result, selected branch and output. That record lets another person check both the process and the final answer.

Try before your workbook

If a final output is correct, what additional evidence can show the correct branch was used?

Check my readiness thinking

Add a step-by-step trace of the condition and executed statements. A coincidentally correct final value alone may conceal a wrong path.

Your original programs and learning models

These original PaxaKids program and data models support your workbook. Some examples deliberately contain faults to investigate. Follow their headings and preserve exact code case, punctuation and order. Traces and supplied records are not claims of physical testing.

Bring the unit’s ideas together

Review algorithms and their representations, exact input and variable traces, first-match linear search, Python selection, radio message handling and the process of developing a program.

Use the complete original examples in this workbook. Predict from the supplied inputs before checking, and explain what the code actually does. Keep your evidence and questions for the final review.

Review input and arithmetic in pseudocode

Pseudocode is a readable algorithm description with agreed conventions. In this workbook INPUT reads a supplied value and OUTPUT reports a value. Use parentheses and the current stored values in the original arithmetic example.
Original Paxa arithmetic pseudocode
base = 12
extra = 108
newValue = (base + extra) / base
OUTPUT newValue

Trace a boundary and a conditional second input

Use inputs 15 then 7. The condition compares the first value with 15; only the selected branch reads the next supplied input. A variable keeps its initial 0 if its INPUT line is not reached.
Original Paxa conditional-input pseudocode
second = 0
third = 0
INPUT first
IF first > 15 THEN
    INPUT second
ELSE
    INPUT third
ENDIF
OUTPUT first, second, third

Review a complete first-match linear search

Keep positions 1–5: 18, 5, 42, 27, 9. Compare in order with the same target; stop at the first match or exhaustion.
Review a complete first-match linear search — original labelled workbook model. The following text version gives its labels and values.
Review a complete first-match linear search · original PaxaKids model.
Read this model’s labels and values
Items
  1. 18
  2. 5
  3. 42
  4. 27
  5. 9
Target
42
Inspections
  1. 1
  2. 2
  3. 3

Use Python comparisons and read two records

This complete original starter asks for two fictional names and ages, converts ages to integers and displays both records. For this example, enter valid non-negative integer ages. input returns text before int converts it.
Original Paxa two-record input starter
first_name = input("First name: ")
first_age = int(input("First age: "))
second_name = input("Second name: ")
second_age = int(input("Second age: "))
print("First:", first_name, first_age)
print("Second:", second_name, second_age)

Extend the records to output the older name or an equal-age message

This complete changed program uses the same four inputs, then compares the ages. It reports the name attached to the larger age or Same age when neither age is larger. Valid integer input remains the stated scope.
Original Paxa complete age-comparison program
first_name = input("First name: ")
first_age = int(input("First age: "))
second_name = input("Second name: ")
second_age = int(input("Second age: "))
if first_age > second_age:
    print("Older:", first_name)
elif second_age > first_age:
    print("Older:", second_name)
else:
    print("Same age")

Predict older and equal-age cases

Use the page 6 program. Each row is a fresh run with the stated two fictional records. Write the reported name or Same age. These are code predictions, not real personal data or completed learner tests.
Predict older and equal-age cases — original model
First recordSecond recordReported name / message
Lina, 12Omar, 14{'clue': 'Name or Same age', 'prompt': 'Age comparison Lina, 12 vs Omar, 14', 'answers': ['Omar']}
Lina, 12Omar, 12{'clue': 'Name or Same age', 'prompt': 'Age comparison Lina, 12 vs Omar, 12', 'answers': ['Same age']}
Lina, 14Omar, 12{'clue': 'Name or Same age', 'prompt': 'Age comparison Lina, 14 vs Omar, 12', 'answers': ['Lina']}
Lina, 0Omar, 2{'clue': 'Name or Same age', 'prompt': 'Age comparison Lina, 0 vs Omar, 2', 'answers': ['Omar']}

Read a complete original radio review pair

Use the Radio category for the communication features. The sender requests 14 on A and 28 on B. The receiver handles numbers and selects Heart for exactly 14, otherwise Happy. That else branch covers every other handled number, not only 28.
Number sender
radio.setGroup(29)
input.onButtonPressed(Button.A,
    function () {
        radio.sendNumber(14)
    })
input.onButtonPressed(Button.B,
    function () {
        radio.sendNumber(28)
    })
Number receiver with ELSE
radio.setGroup(29)
radio.onReceivedNumber(
    function (receivedNumber) {
        if (receivedNumber == 14) {
            basic.showIcon(
                IconNames.Heart)
        } else {
            basic.showIcon(
                IconNames.Happy)
        }
    })

Predict events on the correct device

Assume the stated number reaches the prepared receiver. Read its complete page 8 if/else code. It has no local button handlers, and the sender contains no local display instructions.
Predict events on the correct device — original model
Receiver gets numberNew icon output
14{'clue': 'Icon name', 'prompt': 'Receiver14', 'answers': ['Heart']}
28{'clue': 'Icon name', 'prompt': 'Receiver28', 'answers': ['Happy']}
99{'clue': 'Icon name', 'prompt': 'Receiver99', 'answers': ['Happy']}

Explain why a large problem is decomposed

Decomposition breaks a problem into smaller, manageable parts that can be understood and implemented. Clear interfaces help the parts work together. Different people may work on parts when they agree how to combine and test them.

A smaller part still needs a clear purpose, inputs, output and tests. Keeping the plan and saved versions makes the development evidence easier to review.

Review iterative development and meaningful retests

Iteration repeats a process. In iterative development, choose and build a small part, test it, investigate mismatches, correct and retest, then add the next part and recheck earlier behaviour. Repeat this cycle as the program grows.
  1. Choose a manageable part and expected behaviour
  2. Write or change that part
  3. Predict and test the chosen cases
  4. Investigate mismatches; correct and retest
  5. Add the next part and recheck earlier behaviour

Files for this activity

Use these original PaxaKids practice files with the matching workbook. Work on a local copy in the appropriate editor. Some examples deliberately contain faults to investigate; a downloaded file is not a completed practical test.

Paxa the Fox

Try one step with Paxa!

Trace code in the stated order and preserve exact spelling and case. Use fictional data. Label a prediction, paper trace, simulator run and physical-device test separately; an unperformed test stays Pending. Save personal responses before leaving.

Our Unit 1 learning path
  1. Lesson 1.1: Recall algorithms and representations
  2. Lesson 1.2: Purpose and conventions of pseudocode
  3. Lesson 1.3: Input, output and strings
  4. Lesson 1.4: Identifiers and assignment
  5. Lesson 1.5: Arithmetic and translation
  6. Lesson 1.6: Trace and review a sequence
  7. Lesson 1.7: Conditions and two-way flow
  8. Lesson 1.8: IF THEN and indentation
  9. Lesson 1.9: IF THEN ELSE and decision diagrams
  10. Lesson 1.10: Ordered ELSEIF and fallback ELSE
  11. Lesson 1.11: Match flowchart and pseudocode branches
  12. Lesson 1.12: AND, OR and NOT
  13. Lesson 1.13: Grouping, precedence and review
  14. Lesson 1.14: Why software searches
  15. Lesson 1.15: A successful linear search
  16. Lesson 1.16: An unsuccessful search and termination
  17. Lesson 1.17: Practise and communicate the search
  18. Lesson 1.18: Translate conditions into Python
  19. Lesson 1.19: One-branch IF programs
  20. Lesson 1.20: Two-way IF ELSE programs
  21. Lesson 1.21: Ordered ELIF choices
  22. Lesson 1.22: Ranges and independent decisions
  23. Lesson 1.23: Boolean operators in Python
  24. Lesson 1.24: Design and test recommendations
  25. Lesson 1.25: Trace, debug and reflect
  26. Lesson 1.26: Choose data types and recognise Boolean literals
  27. Lesson 1.27: Set and use Boolean flags
  28. Lesson 1.28: Explain and identify constants
  29. Lesson 1.29: Express constants in three algorithm forms
  30. Lesson 1.30: Use a fixed factor in a calculation
  31. Lesson 1.31: Cast to Boolean and validate an empty response
  32. Lesson 1.32: Recall calls and trace return values
  33. Lesson 1.33: Supply parameters and reuse library code
  34. Lesson 1.34: Choose and import libraries responsibly
  35. Lesson 1.35: Round with floor and ceiling
  36. Lesson 1.36: Use pi and investigate another mathematical feature
  37. Lesson 1.37: Generate random choices within bounds
  38. Lesson 1.38: Investigate random real values and review library use
  39. Lesson 1.39: Retrieve test tables and predict selection outcomes
  40. Lesson 1.40: Decompose everyday problems
  41. Lesson 1.41: Decompose programs and organise shared work
  42. Lesson 1.42: Develop through repeated build/test cycles
  43. Lesson 1.43: Predict and verify algorithm outcomes
  44. Lesson 1.44: Choose representative and boundary tests
  45. Lesson 1.45: Build, execute and review a test plan
  46. Lesson 1.46: Recall physical inputs and compare transmission media
  47. Lesson 1.47: Configure a radio group and agree a message scheme
  48. Lesson 1.48: Send and receive numbers and strings
  49. Lesson 1.49: Trace numeric message sequences
  50. Lesson 1.50: Transmit text and use received data in conditions
  51. Lesson 1.51: Diagnose and extend a message protocol
  52. Lesson 1.52: Review communication and evidence of testing
  53. Lesson 1.53: Project 1: Adventure story
  54. Lesson 1.54: Project 2: Fire, Water, Earth
  55. Lesson 1.55: Check your progress 1
For grown-ups: using this lesson

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.

Read one explanation, discuss the model and try the readiness check before the workbook. Choose “Mark lesson finished” when ready. Optional account progress saves lesson position and completion across devices; save personal responses before leaving.

2. Fill in your workbook

Read the teaching and complete workbook instructions. Choose, write or draw; Answer list offers larger controls. Trace code precisely and distinguish predictions from actual tests. Review designs, explanations and drawings with a grown-up.

Check your progress 113 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 13 original A4 student pages, ready for pencil-and-paper practice. Choose Review Answers to check your work on this webpage.

Student worksheet only · PDF · 8.5 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 13 worksheets

Worksheet 1

  1. Question 1: What makes a trace dependable? following the exact instructions and inputs in order

Worksheet 2

  1. Question 2: Which shown command reads a value from the user? INPUT
  2. Question 3: What is base + extra before the division? 120
  3. Question 4: What value is stored in newValue? 10 / 10.0

Worksheet 3

  1. Question 5: What is first at the final OUTPUT? 15
  2. Question 6: What is second at the final OUTPUT? 0
  3. Question 7: What is third at the final OUTPUT? 7

Worksheet 4

  1. Question 8: Which position is returned for target 42? 3
  2. Question 9: For absent target 31, how many values must be inspected? 5

Worksheet 5

  1. Question 10: Which Python operator tests equality? ==
  2. Question 11: Which Python operator tests inequality? !=
  3. Question 12: Which shown function converts age text to an integer? int

Worksheet 6

  1. Question 13: Complete the first comparison: first_age ___ second_age. >
  2. Question 14: When both ages are equal, what exact message is printed? Same age

Worksheet 7

  1. Question 15: Age comparison Lina, 12 vs Omar, 14 Omar
  2. Question 16: Age comparison Lina, 12 vs Omar, 12 Same age
  3. Question 17: Age comparison Lina, 14 vs Omar, 12 Lina
  4. Question 18: Age comparison Lina, 0 vs Omar, 2 Omar
  5. Question 19: If twelve is entered as an age, what does this program do? int conversion raises an error before the decision

Worksheet 8

  1. Question 20: Which toolbox category contains sending and receiving features? Radio
  2. Question 21: What number is requested by the sender’s A event? 14
  3. Question 22: What number is requested by the sender’s B event? 28

Worksheet 9

  1. Question 23: Receiver14 Heart
  2. Question 24: Receiver28 Happy
  3. Question 25: Receiver99 Happy
  4. Question 26: What does pressing A on the receiver itself trigger here? no programmed button action
  5. Question 27: What local LED output does this sender add? none

Worksheet 10

  1. Question 28: Which statement describes decomposition? breaking a problem into manageable implementable parts

Worksheet 11

  1. Question 29: What should follow a failed development test? investigate, correct and retest
  2. Question 30: Why can decomposition help shared work? parts can be developed with agreed interfaces and integrated tests

Worksheet 12

  1. Question 31: Create the two-record name-and-age input program, then extend it to report the older person’s name or an equal-age message. Use or adapt pages 5–6, keeping complete source versions and valid integer input assumptions. Predict first older, second older and equal cases before executing tests; record actual inputs/outputs or Pending, corrections and retests. Explain assignment versus equality and inequality comparisons, conversion and the selected branch. Identify the current invalid-input limitation. Attach source and test evidence, state your contribution and actual feedback or Pending, and choose a next step. Complete two-record input/display starter and extended older/equal program, names associated correctly with converted valid non-negative integer ages. First older/second older/equal branches correct; == equality, != inequality, = assignment and int text-to-integer conversion explained. Planned inputs/expected output and actual or Pending results with source versions, corrections/retests. Text twelve raises conversion error before selection, not friendly validation; extension policy only claimed if implemented and tested. Own contribution, actual feedback/Pending and meaningful next step, no real personal data required or invented learner execution. Grown-up review; personal evidence is required.

Worksheet 13

  1. Question 32: Review the four areas below with evidence from this unit. Explain one example in each, cite an actual saved source, trace or test record, or write Pending. Include how an algorithm is traced, how selection uses comparisons, how received data selects output, and how iteration/decomposition helped development. Record your contribution, actual feedback or Pending and one next step. Attach full evidence where needed. All four review areas explained using actual evidence or Pending. Pseudocode arithmetic/input-boundary trace and sequential first-match search with unchanged target/stop/exhaustion. Python == versus!= and ordered older/equal comparison using converted valid integers. Radio category, sender payloads, receivedNumber parameter and if/else output including all numeric non14 values selecting Happy; no receiver-local button action. Iterative choose part/write/test/correct-retest/repeat/add with earlier checks; decomposition into manageable implementable parts supports reasoning and shared work. Honest own contribution and feedback/Pending, specific next step, no numerical grading or invented practical/partner performance. Grown-up review; personal evidence is required.
Back to my workbook ↑

Curriculum & workbook reference

Computing for your homeschool day

Explore Check your progress 1 with this free Grade 8 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.

Book page references identify the related teaching topic. File-management and responsible-data preparation are original PaxaKids material; orientation or contents pages are not presented as teaching citations for those skills. The explanations, characters, programs and exercises here are original PaxaKids companion practice. Practical tasks require the appropriate editor and, where applicable, suitable equipment. A design or paper trace is not a verified hardware result. Only completed, reviewed lessons are listed.

Explore the Cambridge Lower Secondary Computing curriculum for programme background. PaxaKids is an independent learning resource.