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.

Topic 1.45 · Build, execute and review a test plan12 fillable worksheet pagesRead at your own pace

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.

Today’s two goals
  • 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.
Original PaxaKids illustration for Build, execute and review a test plan. 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

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

A test plan records the data you will enter and what should happen before running the program. Use one case per row. Include a description or reason, category labels, exact input and expected output.

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

Specification: for integer-text input, accept values from 1 through 100 inclusive; otherwise print Not accepted. This original program converts input with int before checking the range. It assumes an integer can be read: non-integer text raises a conversion error instead of producing Not accepted.
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

Use the page 2 specification. Each row is a fresh test. Boundary status can overlap accepted or invalid status. Retain these predictions and add representative interior and further out-of-range cases to your own plan.
Write expected range results before running — original model
InputReasonExpected final message
0just below lower limit{'clue': 'Expected message', 'prompt': 'Range prediction 0', 'answers': ['Not accepted']}
1at lower limit{'clue': 'Expected message', 'prompt': 'Range prediction 1', 'answers': ['Accepted']}
2just inside lower limit{'clue': 'Expected message', 'prompt': 'Range prediction 2', 'answers': ['Accepted']}
99just inside upper limit{'clue': 'Expected message', 'prompt': 'Range prediction 99', 'answers': ['Accepted']}
100at upper limit{'clue': 'Expected message', 'prompt': 'Range prediction 100', 'answers': ['Accepted']}
101just above upper limit{'clue': 'Expected message', 'prompt': 'Range prediction 101', 'answers': ['Not accepted']}

Compare a recorded result without hiding failures

This supplied simulated record is for interpretation, not proof that you ran anything. The input 101 result shows a mismatch needing investigation. The Pending row has no actual result yet.
Compare a recorded result without hiding failures — original model
InputExpectedSimulated actual / status
1AcceptedAccepted
101Not acceptedAccepted
37AcceptedPending

Use precise storage-unit terminology

For this corrected word-answer example, the name for 1024 bytes is kibibyte, symbol KiB. The decimal kilobyte, symbol kB, is 1000 bytes. These are different standard units, as explained by NIST’s binary-prefix reference.

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.
Use precise storage-unit terminology — original model
Standard unitSymbolBytes
kibibyteKiB1024
kilobytekB1000

Read an exact text-answer acceptance policy

The complete original program accepts exactly the six strings shown in its condition. It does not trim spaces or normalise letter case. Equal text means the exact same character sequence. For example, KiB is a standard symbol but is outside this word-answer 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

Use page 6 and write the exact final message Correct or Use kibibyte. These fixed word choices have no stated ordered numeric limits. Other text programs may have boundaries if they specify lengths, counts or other limits.
Plan accepted variants and useful rejected examples — original model
Exact inputReasonExpected final message
kibibytelisted lowercase name{'clue': 'Expected message', 'prompt': 'Word result for kibibyte', 'answers': ['Correct']}
1 KIBIBYTElisted number and capitals{'clue': 'Expected message', 'prompt': 'Word result for 1 KIBIBYTE', 'answers': ['Correct']}
Kibibytelisted initial capital{'clue': 'Expected message', 'prompt': 'Word result for Kibibyte', 'answers': ['Correct']}
kilobytedifferent decimal unit{'clue': 'Expected message', 'prompt': 'Word result for kilobyte', 'answers': ['Use kibibyte']}
kiBiByteunlisted mixed case{'clue': 'Expected message', 'prompt': 'Word result for kiBiByte', 'answers': ['Use kibibyte']}
KiBsymbol; policy asks for words{'clue': 'Expected message', 'prompt': 'Word result for KiB', 'answers': ['Use kibibyte']}

Read a complete four-integer minimum/maximum program

This original example reads exactly four valid integer inputs. It starts both stored extremes with the first value, then updates them independently for each later value. There is no stated small numeric range: negatives, duplicates and equal inputs are valid.
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

Each row is a fresh four-input run of page 8. Write the numeric values following Smallest: and Largest:. The rows investigate ascending, descending, equal, duplicate and negative data rather than repeating just one ordinary case. Equal inputs check that both stored extremes remain correct.
Predict useful minimum/maximum test cases — original model
Inputs in orderSmallest valueLargest 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

Use the prompts below to review the whole topic. Cite a source file, version, algorithm, trace or test record for each skill, with actual observations or Pending. Describe confidence with words and evidence, without numerical ratings.
Gather evidence for seven software-development skills — original model
SkillEvidence to look for
Explain decomposition and its purposeName useful responsibilities and why they help.
Describe how to decompose a problemKeep broad parts distinct from detailed steps.
Predict outcomes and check themCite a trace and actual comparison or Pending.
Explain iterative developmentDescribe change, test, correction and retest.
Develop through working incrementsKeep source versions and development records.
Create a varied test planState one case per row with a justified expectation.
Identify useful test-data categoriesExplain 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.

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.

Build, execute and review a test plan12 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 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

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 12 worksheets

Worksheet 1

  1. Question 1: Which item belongs in the plan before execution? the expected output for the chosen input
  2. Question 2: How should separate test cases be recorded? one case per row

Worksheet 2

  1. Question 3: Which condition implements both inclusive limits? number >= 1 and number <= 100
  2. Question 4: Does this version provide a friendly rejection for text such as twelve? no, conversion fails before the range decision
  3. Question 5: What is the exact message for integer 37? Accepted

Worksheet 3

  1. Question 6: Range prediction 0 Not accepted
  2. Question 7: Range prediction 1 Accepted
  3. Question 8: Range prediction 2 Accepted
  4. Question 9: Range prediction 99 Accepted
  5. Question 10: Range prediction 100 Accepted
  6. Question 11: Range prediction 101 Not accepted

Worksheet 4

  1. Question 12: How should the input 101 row be treated? investigate the mismatch and record a correction and retest
  2. Question 13: What is the correct conclusion for the Pending row? it has not yet supplied execution evidence

Worksheet 5

  1. Question 14: Write the standard unit name for 1024 bytes. kibibyte
  2. Question 15: Write the symbol for one kibibyte, preserving case. KiB
  3. Question 16: How many bytes are in one decimal kilobyte? 1000

Worksheet 6

  1. Question 17: Does this version accept every mixture of upper- and lowercase letters? no, only the six listed strings

Worksheet 7

  1. Question 18: Word result for kibibyte Correct
  2. Question 19: Word result for 1 KIBIBYTE Correct
  3. Question 20: Word result for Kibibyte Correct
  4. Question 21: Word result for kilobyte Use kibibyte
  5. Question 22: Word result for kiBiByte Use kibibyte
  6. 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

  1. Question 24: Smallest for -3, 0, 5, 8 -3
  2. Question 25: Largest for -3, 0, 5, 8 8
  3. Question 26: Smallest for 8, 5, 0, -3 -3
  4. Question 27: Largest for 8, 5, 0, -3 8
  5. Question 28: Smallest for 4, 4, 4, 4 4
  6. Question 29: Largest for 4, 4, 4, 4 4
  7. Question 30: Smallest for 6, -2, 6, -2 -2
  8. Question 31: Largest for 6, -2, 6, -2 6
  9. Question 32: Smallest for -9, -4, -7, -6 -9
  10. 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

  1. 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

  1. 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.
Back to my workbook ↑

Curriculum & workbook reference

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.