GRADE 6 · COMPUTING · UNIT 1 · LESSON 1.24

Computational thinking and programming

Test device state and improve feedback

Learn the idea, try your workbook and explain your thinking.

Topic 1.6 · Using variables with a physical device6 fillable worksheet pagesRead at your own pace

LET’S LOOK, THINK AND TRY

Test device state and improve feedback

Game rules: Current and Next are whole numbers from 1 to 9. A predicts lower; B predicts higher. A correct strict comparison adds 1 to Score.

I can…
  • Test device state and improve feedback.
  • test my result and explain an improvement.
An original PaxaKids workbook scene for using variables with a physical device.
An original PaxaKids scene. Use the workbook’s exact diagrams and supplied records for its questions.

Track input, stored values and output

A programmable device receives input, processes data using its program and produces output. A micro:bit can use button input and its LED display for output. Variables can store a game number, a guess or a score. Start from the initial values and trace the exact button event. In a higher-or-lower game, handle equal numbers explicitly. A simulator helps test the program, while physical equipment needs a grown-up’s supervision.

Work through the example: Find a feedback failure

Each row is a separate test with Score initially 0. The rule says equal numbers must show =. Yes means a correct guess; No means an incorrect strict guess.

Original workbook model: Find a feedback failure.
The unchanged model from page 2 of your original student workbook.

Why this helps: A programmable device receives input, processes data using its program and produces output. A micro:bit can use button input and its LED display for output. Variables can store a game number, a guess or a score. Start from the initial values and trace the exact button event. In a higher-or-lower game, handle equal numbers explicitly. A simulator helps test the program, while physical equipment needs a grown-up’s supervision.

Try it before the workbook

Which information makes a state test repeatable?

Use the explanation to choose a reason. This first workbook question helps you check that you are ready.

Explore the clues

Open one card at a time.

Remember the idea

A programmable device receives input, processes data using its program and produces output. A micro:bit can use button input and its LED display for output. Variables can store a game number, a guess or a score. Start from the initial values and trace the exact button event. In a higher-or-lower game, handle equal numbers explicitly. A simulator helps test the program, while physical equipment needs a grown-up’s supervision.

Check your first try

Initial values, button and controlled Next

Game rules: Current and Next are whole numbers from 1 to 9. A predicts lower; B predicts higher. A correct strict comparison adds 1 to Score. A wrong guess adds nothing. Equal numbers show = and add nothing. After every completed round, Next becomes Current. Press A+B while ready to view Score, then Current returns. Paxa and Maya test the equal case, correct and incorrect predictions, a new Current after every round, and buttons pressed during feedback. A useful test records initial state, action and expected state/output.

Explain with evidence

Use the equal-case failure and the Busy/score-view test in this lesson.

Paxa the Fox

Think safely with Paxa!

Use the supplied examples and a paper simulation first. Ask a grown-up before using a device or creating an online account. Never share passwords or private information.

Use the actual records and labels to explain your answer.

Our Unit 1 learning path
  1. Lesson 1.1: Read and explain a flowchart
  2. Lesson 1.2: Trace branches and repeated steps
  3. Lesson 1.3: Build an animation from a plan
  4. Lesson 1.4: Test and repair a decision plan
  5. Lesson 1.5: Combine programming ideas
  6. Lesson 1.6: Reason about loops, text and time
  7. Lesson 1.7: Build a small dialogue program
  8. Lesson 1.8: Test a clock and improve its rules
  9. Lesson 1.9: Define and call reusable routines
  10. Lesson 1.10: Trace routines and shared state
  11. Lesson 1.11: Build a quiz with reusable feedback
  12. Lesson 1.12: Coordinate sprites and test reuse
  13. Lesson 1.13: Plan a program and its interface
  14. Lesson 1.14: Trace choices before programming
  15. Lesson 1.15: Build a one-round choice game
  16. Lesson 1.16: Test a plan and improve a prototype
  17. Lesson 1.17: Evaluate against clear success criteria
  18. Lesson 1.18: Choose a systematic range of test data
  19. Lesson 1.19: Build and test an input-checking loop
  20. Lesson 1.20: Repair, retest and report improvements
  21. Lesson 1.21: Connect device inputs, variables and outputs
  22. Lesson 1.22: Act out a variable-controlled game
  23. Lesson 1.23: Build a button-controlled higher-or-lower game
  24. Lesson 1.24: Test device state and improve feedback
  25. Lesson 1.25: Build and evaluate a two-level quiz
For grown-ups: using this lesson

Explore the explanation and model together, then try the workbook. 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.

Opening or checking a page does not complete the lesson. Choose “Mark lesson finished” when ready. Optional account progress saves the selected grade, lesson position and completion across devices. Personal workbook responses remain in this tab; save your copy before leaving. Use fictional data and supervised devices; do not share passwords, contact details or real personal records.

2. Fill in your workbook

Read each page’s explanation and use its own diagrams, labels and supplied records. Choose, write or draw. Use Answer list for larger controls.

Test device state and improve feedback6 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.4 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: Which information makes a state test repeatable? b) Initial values, button and controlled Next
  2. Question 2: Which case needs its own explicit test? a) Next equals Current

Worksheet 2

  1. Question 3: How many feedback tests pass? 3
  2. Question 4: What Current is used in the failed row? 4
  3. Question 5: What feedback should replace the faulty No? = / equal sign

Worksheet 3

  1. Question 6: For Current = 1, Next = 9 and B, what should Score become? 3
  2. Question 7: For Current = 9, Next = 1 and B, what should Score remain? 2
  3. Question 8: For Current = 6, Next = 6 and A, what should Score remain? 2

Worksheet 4

  1. Question 9: What Score should remain after this complete test? 2
  2. Question 10: What Current should remain? 5
  3. Question 11: How many Next draws should the score view and ignored button cause altogether? 0
  4. Question 12: Which repair prevents an overlapping input from changing state? b) Keep Busy true throughout feedback and score display

Worksheet 5

  1. Question 13: Which user task checks the new key? a) A new tester chooses the lower-prediction button using only the key
  2. Question 14: Which tests should follow an equality repair? a) Equal, correct and incorrect cases plus state updates
  3. Question 15: On a fresh restart, what Score should be restored? 0

Worksheet 6

  1. Question 16: Report the equal-case fault and its repair. Give an equal test and a non-equal retest with expected state and feedback. Equal numbers should show = and add no point; the faulty version shows No. Check equality before the strict comparison. Test Current = 4, Next = 4, B and Score = 0: expect =, Score = 0 and Current = 4. Retest Current = 4, Next = 7, B from Score = 0: expect Yes, Score = 1 and Current = 7. Require expected feedback and state. Grown-up review.
  2. Question 17: Describe a test that could expose an incorrectly released Busy guard. While a score view or feedback is still showing, press a prediction button. Expected no extra random draw,round,score change or Current change caused by ignored input; Busy stays true until the original output sequence finishes. Then a later ready-state input should work. Require initial state and observable outcome. Grown-up review.
Back to my workbook ↑

Curriculum & workbook reference

Computing for your homeschool day

Explore Using variables with a physical device with this free Grade 6 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.

The book pages identify the related teaching or assessment. These explanations, projects, review activities and student workbooks are original PaxaKids companion materials. These activities include paper alternatives. No separate publisher Workbook or proprietary digital project files are needed.