GRADE 7 · COMPUTING · UNIT 6 · LESSON 6.5
Sequencing and pattern recognition: Getting the message across
Project plans and test plans
Read a little. Try the workbook. Check your answers. Choose one section below to get started.
LET’S TRACE, REASON AND TEST
Project plans and test plans
A project plan breaks the alarm requirement into inputs, outputs, inactive behaviour and manageable tasks. A test plan records input and expected result before running the test; actual results and pass/fail need real observations.
- Decompose an alarm requirement into input, output and inactive-state decisions.
- Specify test inputs and expected outcomes for a flowchart or program.

Explore the clues
Tap one card to find out more.
Understand the idea
A project plan breaks the alarm requirement into inputs, outputs, inactive behaviour and manageable tasks. A test plan records input and expected result before running the test; actual results and pass/fail need real observations.
Concept to practise: Project plans and test plans.
Work through an example
A button test using was_pressed() detects a press since the previous call and clears that history. Holding the button is different from making another press. Plan a release-and-press test as well as a held-button case.
Try before your workbook
Why is 'it worked' weaker evidence than a test row naming the saved revision, input, expected result and actual result?
Check my readiness thinking
The detailed row lets another person reproduce and assess the check. Record whether the test used a trace, simulator or suitable hardware. If required sound hardware is unavailable, keep that physical sound test pending instead of inventing a result.
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.
Plan what the alarm must do
A test plan specifies an input and expected result before the test. The actual result comes from the test itself; a Pass or Fail judgement compares the two.
Decompose the prototype requirement
| Planning area | Decision for the original Paxa prototype |
|---|---|
| Input | A new A-button press activates one sequence. |
| Active sound | Request an 880 Hz tone for 1000 ms; wait 1000 ms. |
| Active image | Show ANGRY; wait 1000 ms. |
| Completion | Clear display and stop sound, then monitor again. |
| Inactive state | With no new A press, keep display clear and sound stopped. |
Follow active, completion and inactive paths
Decision: New A press?
True branch
- alarm_on
- alarm_off
False branch
- alarm_off
Read the complete original prototype
Original program model
from microbit import *
import music
def alarm_on():
music.pitch(880, duration=1000, wait=False)
sleep(1000)
display.show(Image.ANGRY)
sleep(1000)
def alarm_off():
display.clear()
music.stop()
alarm_off()
while True:
if button_a.was_pressed():
alarm_on()
alarm_off()
sleep(30)Practice files for this lesson
Save a copy of these original PaxaKids learner files before editing in suitable software. Some code and datasets deliberately need completion or repair. Downloading a file does not run it. Use invented data; record actual tests separately from predictions. Native software practice files are not print-optimised; use the student PDF for printing.

Try one step with Paxa!
Use supplied fictional records. Do not disclose personal details, upload private photos or bypass browser warnings to complete an activity. Save personal responses before leaving.
Our Unit 6 learning path
- Lesson 6.1: Prototyping
- Lesson 6.2: Pattern recognition
- Lesson 6.3: Patterns between text-based programming languages
- Lesson 6.4: Boolean selection and sub-routines
- Lesson 6.5: Project plans and test plans
- Lesson 6.6: Identifying errors and debugging
- Lesson 6.7: Sequences and lights
- Lesson 6.8: Creating a moving sequence of lights
- Lesson 6.9: Extending a light sequence
- Lesson 6.10: Light brightness
- Lesson 6.11: Loading-screen and name-sequence extensions
- Lesson 6.12: Final project: Sound-triggered visual alarm
- Lesson 6.13: Evaluation
- Lesson 6.14: What can you do?
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 the 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 6 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 6 worksheets
Worksheet 1
- Question 1: What belongs in an expected-result cell? the behaviour required before testing
- Question 2: What makes a Pass judgement justified? the recorded actual result meets the stated expected result
Worksheet 2
- Question 3: Which requirement checks the inactive state? no new A press leaves the display clear and sound stopped
Worksheet 3
This page introduces the activity. There are no marked responses on this sheet.
Worksheet 4
This page introduces the activity. There are no marked responses on this sheet.
Worksheet 5
- Question 4: Open PrototypeToTest_Paxa.py, connect and flash a compatible micro:bit, and apply the four checks. Press and release A for the active tests. Record the input, expected behaviour, actual observation and justified Pass/Fail, or Pending. Identify the method, source revision and board/audio arrangement. Keep all actual-result and outcome cells blank until you perform that test. Retain all four checks: a new A press activates the sequence; sound is followed by a one-second wait, then ANGRY and another one-second wait; completion clears the display and stops sound; no new press leaves the system clear and silent. The original tone request is 880 Hz for 1000 ms in the background. was_pressed() reports a new press since its previous call; holding A alone is not another press. Require actual observations, the method and revision, and a reason for each outcome. V2 has a built-in speaker; V1 needs an appropriate teacher-provided output. Mark unavailable USB, board or audio evidence Pending. Identify a discrepancy if present and retain correction/retest evidence. Never copy a prefilled Pass or invent a result. Grown-up review; personal evidence is required.
Worksheet 6
- Question 5: Discuss your findings with a small group. Explain what the completed test table showed, including any discrepancy or test still Pending. Explain the purpose of a project plan. Propose relevant tests for a sound-triggered visual alarm: specify inputs, expected light-sequence order/timing and inactive behaviour, and explain how results would guide an improvement. Record the actual discussion and next action, or mark the discussion Pending. Discuss all three source areas: actual test findings, the purpose of a project plan, and proposed visual-alarm tests. Explain how requirements, decomposition, inputs, outputs, testing and improvement connect. Proposed tests need stated trigger and non-trigger inputs, light-sequence order and timing, completion and inactive behaviour. Add repeated-trigger or boundary tests where relevant to the chosen rule. Identify V2 when using its built-in microphone. Distinguish predictions from observations and record actual group discussion or Pending. A correct prototype need not contain an invented fault. Give a concrete next action. No numeric scores. Grown-up review; personal evidence is required.
Curriculum & workbook reference
- Cambridge Lower Secondary Computing 7 Student’s Book — pages 201–202
- PaxaKids Grade 7 Computing Lesson 6.5: Project plans and test plans — pages 1–6
Computing for your homeschool day
Explore Project plans and test plans with this free Grade 7 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
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.
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.
The book pages identify the related teaching topic. 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.
