GRADE 8 · COMPUTING · UNIT 1 · LESSON 1.45
Computational thinking and programming
Build, execute and review a test plan
Read a little. Try the workbook. Check your answers. Choose one section below to get started.
LET’S TRACE, REASON AND TEST
Build, execute and review a test plan
A test plan gives inputs, independently expected outcomes, actual results and a conclusion. Link a failure to a specific repair and retest. Do not fill an actual-result column with an unperformed prediction.
- Write expected results before testing, record actual results and plan useful retests for numeric and text input.
- Explain my method and support it with a labelled trace, example or test record.

Work through an example
A row may state input 6, expected Accept, actual Reject, result Fail. After correcting the comparison, add a separate retest result and say whether it came from a run or manual trace.
Try before your workbook
If you have only reasoned on paper, what should a device-run result say?
Explore the clues
Tap one card to find out more.
Understand the idea
A test plan gives inputs, independently expected outcomes, actual results and a conclusion. Link a failure to a specific repair and retest. Do not fill an actual-result column with an unperformed prediction.
Concept to practise: Build, execute and review a test plan.
Work through an example
A row may state input 6, expected Accept, actual Reject, result Fail. After correcting the comparison, add a separate retest result and say whether it came from a run or manual trace.
Try before your workbook
If you have only reasoned on paper, what should a device-run result say?
Check my readiness thinking
Mark the device run Pending or Not performed, and label the paper trace separately. Honest evidence is more useful than an invented pass.
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.
Turn selected cases into a usable test plan
After execution add the actual output and comparison. Keep failures, investigate them, change the appropriate code or prediction and record a retest. A table may be created on paper or in suitable word-processing, spreadsheet or database software.
Read the complete range-checking program
Original Paxa integer-range check
number = int(input("Integer from 1 to 100: "))
if number >= 1 and number <= 100:
print("Accepted")
else:
print("Not accepted")Write expected range results before running
| Input | Reason | Expected final message |
|---|---|---|
| 0 | just below lower limit | {'clue': 'Expected message', 'prompt': 'Range prediction 0', 'answers': ['Not accepted']} |
| 1 | at lower limit | {'clue': 'Expected message', 'prompt': 'Range prediction 1', 'answers': ['Accepted']} |
| 2 | just inside lower limit | {'clue': 'Expected message', 'prompt': 'Range prediction 2', 'answers': ['Accepted']} |
| 99 | just inside upper limit | {'clue': 'Expected message', 'prompt': 'Range prediction 99', 'answers': ['Accepted']} |
| 100 | at upper limit | {'clue': 'Expected message', 'prompt': 'Range prediction 100', 'answers': ['Accepted']} |
| 101 | just above upper limit | {'clue': 'Expected message', 'prompt': 'Range prediction 101', 'answers': ['Not accepted']} |
Compare a recorded result without hiding failures
| Input | Expected | Simulated actual / status |
|---|---|---|
| 1 | Accepted | Accepted |
| 101 | Not accepted | Accepted |
| 37 | Accepted | Pending |
Use precise storage-unit terminology
The next program asks for a name written in words and accepts six specifically listed spellings. A correct unit symbol is not automatically an accepted answer to a word-only input policy.
| Standard unit | Symbol | Bytes |
|---|---|---|
| kibibyte | KiB | 1024 |
| kilobyte | kB | 1000 |
Read an exact text-answer acceptance policy
Original Paxa corrected binary-unit answer check
answer = input("Name for 1024 bytes: ")
if (answer == "kibibyte" or answer == "Kibibyte"
or answer == "KIBIBYTE" or answer == "1 kibibyte"
or answer == "1 Kibibyte" or answer == "1 KIBIBYTE"):
print("Correct")
else:
print("Use kibibyte")Plan accepted variants and useful rejected examples
| Exact input | Reason | Expected final message |
|---|---|---|
| kibibyte | listed lowercase name | {'clue': 'Expected message', 'prompt': 'Word result for kibibyte', 'answers': ['Correct']} |
| 1 KIBIBYTE | listed number and capitals | {'clue': 'Expected message', 'prompt': 'Word result for 1 KIBIBYTE', 'answers': ['Correct']} |
| Kibibyte | listed initial capital | {'clue': 'Expected message', 'prompt': 'Word result for Kibibyte', 'answers': ['Correct']} |
| kilobyte | different decimal unit | {'clue': 'Expected message', 'prompt': 'Word result for kilobyte', 'answers': ['Use kibibyte']} |
| kiBiByte | unlisted mixed case | {'clue': 'Expected message', 'prompt': 'Word result for kiBiByte', 'answers': ['Use kibibyte']} |
| KiB | symbol; policy asks for words | {'clue': 'Expected message', 'prompt': 'Word result for KiB', 'answers': ['Use kibibyte']} |
Read a complete four-integer minimum/maximum program
Original Paxa four-input minimum and maximum
number = int(input("First integer: "))
smallest = number
largest = number
number = int(input("Second integer: "))
if number > largest:
largest = number
if number < smallest:
smallest = number
number = int(input("Third integer: "))
if number > largest:
largest = number
if number < smallest:
smallest = number
number = int(input("Fourth integer: "))
if number > largest:
largest = number
if number < smallest:
smallest = number
print("Smallest:", smallest)
print("Largest:", largest)Predict useful minimum/maximum test cases
| Inputs in order | Smallest value | Largest value |
|---|---|---|
| -3, 0, 5, 8 | {'clue': 'Integer', 'prompt': 'Smallest for -3, 0, 5, 8', 'answers': ['-3']} | {'clue': 'Integer', 'prompt': 'Largest for -3, 0, 5, 8', 'answers': ['8']} |
| 8, 5, 0, -3 | {'clue': 'Integer', 'prompt': 'Smallest for 8, 5, 0, -3', 'answers': ['-3']} | {'clue': 'Integer', 'prompt': 'Largest for 8, 5, 0, -3', 'answers': ['8']} |
| 4, 4, 4, 4 | {'clue': 'Integer', 'prompt': 'Smallest for 4, 4, 4, 4', 'answers': ['4']} | {'clue': 'Integer', 'prompt': 'Largest for 4, 4, 4, 4', 'answers': ['4']} |
| 6, -2, 6, -2 | {'clue': 'Integer', 'prompt': 'Smallest for 6, -2, 6, -2', 'answers': ['-2']} | {'clue': 'Integer', 'prompt': 'Largest for 6, -2, 6, -2', 'answers': ['6']} |
| -9, -4, -7, -6 | {'clue': 'Integer', 'prompt': 'Smallest for -9, -4, -7, -6', 'answers': ['-9']} | {'clue': 'Integer', 'prompt': 'Largest for -9, -4, -7, -6', 'answers': ['-4']} |
Gather evidence for seven software-development skills
| Skill | Evidence to look for |
|---|---|
| Explain decomposition and its purpose | Name useful responsibilities and why they help. |
| Describe how to decompose a problem | Keep broad parts distinct from detailed steps. |
| Predict outcomes and check them | Cite a trace and actual comparison or Pending. |
| Explain iterative development | Describe change, test, correction and retest. |
| Develop through working increments | Keep source versions and development records. |
| Create a varied test plan | State one case per row with a justified expectation. |
| Identify useful test-data categories | Explain normal/invalid/boundary and overlaps. |
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.

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
- Lesson 1.1: Recall algorithms and representations
- Lesson 1.2: Purpose and conventions of pseudocode
- Lesson 1.3: Input, output and strings
- Lesson 1.4: Identifiers and assignment
- Lesson 1.5: Arithmetic and translation
- Lesson 1.6: Trace and review a sequence
- Lesson 1.7: Conditions and two-way flow
- Lesson 1.8: IF THEN and indentation
- Lesson 1.9: IF THEN ELSE and decision diagrams
- Lesson 1.10: Ordered ELSEIF and fallback ELSE
- Lesson 1.11: Match flowchart and pseudocode branches
- Lesson 1.12: AND, OR and NOT
- Lesson 1.13: Grouping, precedence and review
- Lesson 1.14: Why software searches
- Lesson 1.15: A successful linear search
- Lesson 1.16: An unsuccessful search and termination
- Lesson 1.17: Practise and communicate the search
- Lesson 1.18: Translate conditions into Python
- Lesson 1.19: One-branch IF programs
- Lesson 1.20: Two-way IF ELSE programs
- Lesson 1.21: Ordered ELIF choices
- Lesson 1.22: Ranges and independent decisions
- Lesson 1.23: Boolean operators in Python
- Lesson 1.24: Design and test recommendations
- Lesson 1.25: Trace, debug and reflect
- Lesson 1.26: Choose data types and recognise Boolean literals
- Lesson 1.27: Set and use Boolean flags
- Lesson 1.28: Explain and identify constants
- Lesson 1.29: Express constants in three algorithm forms
- Lesson 1.30: Use a fixed factor in a calculation
- Lesson 1.31: Cast to Boolean and validate an empty response
- Lesson 1.32: Recall calls and trace return values
- Lesson 1.33: Supply parameters and reuse library code
- Lesson 1.34: Choose and import libraries responsibly
- Lesson 1.35: Round with floor and ceiling
- Lesson 1.36: Use pi and investigate another mathematical feature
- Lesson 1.37: Generate random choices within bounds
- Lesson 1.38: Investigate random real values and review library use
- Lesson 1.39: Retrieve test tables and predict selection outcomes
- Lesson 1.40: Decompose everyday problems
- Lesson 1.41: Decompose programs and organise shared work
- Lesson 1.42: Develop through repeated build/test cycles
- Lesson 1.43: Predict and verify algorithm outcomes
- Lesson 1.44: Choose representative and boundary tests
- Lesson 1.45: Build, execute and review a test plan
- Lesson 1.46: Recall physical inputs and compare transmission media
- Lesson 1.47: Configure a radio group and agree a message scheme
- Lesson 1.48: Send and receive numbers and strings
- Lesson 1.49: Trace numeric message sequences
- Lesson 1.50: Transmit text and use received data in conditions
- Lesson 1.51: Diagnose and extend a message protocol
- Lesson 1.52: Review communication and evidence of testing
- Lesson 1.53: Project 1: Adventure story
- Lesson 1.54: Project 2: Fire, Water, Earth
- 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.
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 12 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.2 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 12 worksheets
Worksheet 1
- Question 1: Which item belongs in the plan before execution? the expected output for the chosen input
- Question 2: How should separate test cases be recorded? one case per row
Worksheet 2
- Question 3: Which condition implements both inclusive limits? number >= 1 and number <= 100
- Question 4: Does this version provide a friendly rejection for text such as twelve? no, conversion fails before the range decision
- Question 5: What is the exact message for integer 37? Accepted
Worksheet 3
- Question 6: Range prediction 0 Not accepted
- Question 7: Range prediction 1 Accepted
- Question 8: Range prediction 2 Accepted
- Question 9: Range prediction 99 Accepted
- Question 10: Range prediction 100 Accepted
- Question 11: Range prediction 101 Not accepted
Worksheet 4
- Question 12: How should the input 101 row be treated? investigate the mismatch and record a correction and retest
- Question 13: What is the correct conclusion for the Pending row? it has not yet supplied execution evidence
Worksheet 5
- Question 14: Write the standard unit name for 1024 bytes. kibibyte
- Question 15: Write the symbol for one kibibyte, preserving case. KiB
- Question 16: How many bytes are in one decimal kilobyte? 1000
Worksheet 6
- Question 17: Does this version accept every mixture of upper- and lowercase letters? no, only the six listed strings
Worksheet 7
- Question 18: Word result for kibibyte Correct
- Question 19: Word result for 1 KIBIBYTE Correct
- Question 20: Word result for Kibibyte Correct
- Question 21: Word result for kilobyte Use kibibyte
- Question 22: Word result for kiBiByte Use kibibyte
- Question 23: Word result for KiB Use kibibyte
Worksheet 8
This page introduces the activity. There are no marked responses on this sheet.
Worksheet 9
- Question 24: Smallest for -3, 0, 5, 8 -3
- Question 25: Largest for -3, 0, 5, 8 8
- Question 26: Smallest for 8, 5, 0, -3 -3
- Question 27: Largest for 8, 5, 0, -3 8
- Question 28: Smallest for 4, 4, 4, 4 4
- Question 29: Largest for 4, 4, 4, 4 4
- Question 30: Smallest for 6, -2, 6, -2 -2
- Question 31: Largest for 6, -2, 6, -2 6
- Question 32: Smallest for -9, -4, -7, -6 -9
- Question 33: Largest for -9, -4, -7, -6 -4
Worksheet 10
This page introduces the activity. There are no marked responses on this sheet.
Worksheet 11
- Question 34: Create separate test plans for the page 2 range check and page 6 word check. Use one case per row with type/reason, exact input and expected output written before running. Include both numeric boundaries, interior/outside cases, all six accepted word strings and useful rejected variants. Run each case and add actual output or Pending, comparison, correction and retest. Explain conversion-error scope, category overlap and why this exact-word policy has no numeric boundary. Attach complete tables and source; cite them here. Range: 0 and 101 Not accepted; 1, 2, 99, 100 and ordinary interior such as 37 Accepted; further outside such as 150 Not accepted. Each expected result precedes actual observation or Pending. int conversion error for twelve or 1.5 is not a friendly Not accepted result; an improved arbitrary-text validator is a separate requirement. Six exact accepted strings: kibibyte, Kibibyte, KIBIBYTE, 1 kibibyte, 1 Kibibyte, 1 KIBIBYTE; each prints Correct. Other stated examples print Use kibibyte, including kilobyte, kiBiByte, KiB, empty or padded strings under this exact policy. Correct standard 1024-byte name and symbol distinguished from accepted input policy. Normal/invalid/boundary overlaps explained; no ordered boundary assumed for fixed word membership. Complete actual/Pending records, preserved mismatches and justified corrections/retests, no invented learner runs. Grown-up review; personal evidence is required.
Worksheet 12
- Question 35: Prepare a justified test plan for page 8 using ascending, descending, equal, duplicate and negative inputs, plus cases with an extreme first or last. Predict both outputs before running; record actual results or Pending, any correction and retest. Keep the full code and tables. Then build a short evidence portfolio for all seven page 10 skills, explaining your approach to testing, your contribution, a useful correction or remaining question, and how you will use test plans in future work. Complete four-valid-integer minimum/maximum program and plan. Page 9 numeric pairs: -3/8, -3/8, 4/4, -2/6, -9/-4. Add justified first/last extreme cases; e.g 11,1,7,4 gives smallest 1 and largest 11; 1,7,4,11 gives 1 and 11. Stored extremes initialise from first input, both independent comparisons update later values, equality preserves correct extremes. No unsupported finite numeric limits or friendly invalid-text handling claimed. Predictions precede actual/Pending results, full source/records and correction/retests. Portfolio covers all seven skills using specific evidence, own contribution, approach, future plan and support need; no fabricated execution or numerical confidence scores. Grown-up review; personal evidence is required.
Curriculum & workbook reference
- Cambridge Lower Secondary Computing Learner’s Book 8 — pages 168–172
- PaxaKids Grade 8 Computing Lesson 1.45: Build, execute and review a test plan — pages 1–12
Computing for your homeschool day
Explore Build, execute and review a test plan 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.
