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.

6 fillable worksheet pagesRead at your own pace

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.

Today’s two goals
  • Decompose an alarm requirement into input, output and inactive-state decisions.
  • Specify test inputs and expected outcomes for a flowchart or program.
Original PaxaKids illustration for Project plans and test plans. Precise program text and data are supplied in the workbook models.
An original PaxaKids workbook scene. Use the supplied programs and data for precise workbook facts.

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 project plan identifies the purpose, smaller tasks, inputs, outputs and checks needed to develop a solution. Decomposition makes a large requirement easier to design and test.

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

Decompose the prototype requirement — original model
Planning areaDecision for the original Paxa prototype
InputA new A-button press activates one sequence.
Active soundRequest an 880 Hz tone for 1000 ms; wait 1000 ms.
Active imageShow ANGRY; wait 1000 ms.
CompletionClear display and stop sound, then monitor again.
Inactive stateWith no new A press, keep display clear and sound stopped.

Follow active, completion and inactive paths

The original program uses was_pressed(): it reports a press since its previous call and clears that press history. Holding A is not another press by itself. This differs from testing the current held state.

    Decision: New A press?

    True branch
    1. alarm_on
    2. alarm_off
    False branch
    1. alarm_off

    Read the complete original prototype

    Open the supplied original Paxa equivalent in the micro:bit Python editor. Save and send that revision. V2 has a built-in speaker; V1 needs a suitable teacher-provided sound-output arrangement, otherwise leave the physical sound check Pending.
    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.

    Paxa the Fox

    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
    1. Lesson 6.1: Prototyping
    2. Lesson 6.2: Pattern recognition
    3. Lesson 6.3: Patterns between text-based programming languages
    4. Lesson 6.4: Boolean selection and sub-routines
    5. Lesson 6.5: Project plans and test plans
    6. Lesson 6.6: Identifying errors and debugging
    7. Lesson 6.7: Sequences and lights
    8. Lesson 6.8: Creating a moving sequence of lights
    9. Lesson 6.9: Extending a light sequence
    10. Lesson 6.10: Light brightness
    11. Lesson 6.11: Loading-screen and name-sequence extensions
    12. Lesson 6.12: Final project: Sound-triggered visual alarm
    13. Lesson 6.13: Evaluation
    14. 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.

    Project plans and test plans6 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 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

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

    Worksheet 1

    1. Question 1: What belongs in an expected-result cell? the behaviour required before testing
    2. Question 2: What makes a Pass judgement justified? the recorded actual result meets the stated expected result

    Worksheet 2

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

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

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

    Curriculum & workbook reference

    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.