GRADE 5 · COMPUTING · UNIT 1 · LESSON 1.29
Computational thinking and programming
Paxa Mystery Number
Build Paxa Mystery Number in Scratch. Player 1 enters two whole numbers from 1 to 9. Store them as FirstCount and SecondCount.
LET’S LOOK, THINK AND TRY
Paxa Mystery Number
Build Paxa Mystery Number in Scratch. Player 1 enters two whole numbers from 1 to 9. Store them as FirstCount and SecondCount.
- Build and test a mystery-number program.
- Plan, test and explain an original solution using the supplied records.

Explore the clues
Tap one card to find out more.
Understand the idea
Build Paxa Mystery Number in Scratch. Player 1 enters two whole numbers from 1 to 9. Store them as FirstCount and SecondCount. Set Secret = (FirstCount + SecondCount) - 1. Player 2 enters one whole-number Guess from 1 to 17. Compare Guess with Secret: say Match! if equal; otherwise say Try again next round. The game ends after this one guess. Restart with the flag for a new round.
Read the complete two-part model
Build the input part of one script
Start and capture both inputsWHEN green flag clickedASK First count (1-9)? AND WAITSET FirstCount TO answerASK Second count (1-9)? AND WAITSET SecondCount TO answer
Choose a sprite and create FirstCount, SecondCount, Secret and Guess for all
sprites. Hide their monitors during play using the Variables checkboxes; show them
temporarily when testing. Build this script, then continue it on page 3. Use ASK and
wait so each reply is captured before the next question. Our test inputs follow the
stated whole-number ranges.
Complete the calculation and decision
Continue after the second inputSET Secret TO (FirstCount + SecondCount) - 1ASK Guess (1-17)? AND WAITSET Guess TO answerIF Guess = Secret THENSAY Match! FOR 2 SECONDSELSESAY Try again next round FOR 2 SECONDSEND IF
Attach these instructions directly below page 2 in the same script. In Scratch, nest
a plus operator inside the left side of a minus operator to make (FirstCount +
SecondCount) - 1. Put the orange variable reporters in the calculation and
comparison. The final IF has two timed SAY branches; its end finishes this one-guess
round.
Explain with evidence
Use the agreed project criteria: both inputs are stored before reuse of answer; Secret follows the stated formula; a single Guess is compared with Secret; both feedback branches work; the flag starts a new round with new inputs. Add a useful comment explaining the calculation. A comment explains the code to another programmer and does not execute.

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 supplied code, labels and records to explain your answer.
Our Unit 1 learning path
- Lesson 1.1: Meet variables and values
- Lesson 1.2: Trace variables and a robot route
- Lesson 1.3: Build a shared game counter
- Lesson 1.4: Debug and test variable programs
- Lesson 1.5: Calculate with stored numbers
- Lesson 1.6: Trace inputs and comparisons
- Lesson 1.7: Build and test a calculator
- Lesson 1.8: Debug calculator operations
- Lesson 1.9: Choose a path with selection
- Lesson 1.10: Trace branches on paper
- Lesson 1.11: Control a sprite with key conditions
- Lesson 1.12: Check branches and repair control bugs
- Lesson 1.13: Break a problem into clear parts
- Lesson 1.14: Compare and trace algorithms
- Lesson 1.15: Build a program from an outline
- Lesson 1.16: Test and improve a solution plan
- Lesson 1.17: Objects, behaviours and messages
- Lesson 1.18: Trace contacts and message effects
- Lesson 1.19: Build a two-sprite signal challenge
- Lesson 1.20: Debug interactions between objects
- Lesson 1.21: Meet the program-making team
- Lesson 1.22: Plan a useful program with clear criteria
- Lesson 1.23: Build and test a friendly four-question quiz
- Lesson 1.24: Evaluate, refine and retest a program
- Lesson 1.25: Inputs, conditions and LED outputs
- Lesson 1.26: Trace physical-device decisions on paper
- Lesson 1.27: Build the two-player Signal Match game
- Lesson 1.28: Find faults and test device programs
- Lesson 1.29: Paxa Mystery Number
For grown-ups: using this lesson
Explore the computing idea 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.
Choose “Mark lesson finished” when ready. Optional account progress saves position and completion; save personal workbook responses before leaving. Use fictional data; do not share names, passwords or other private information.
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.
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.6 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: Which expression gives Secret? a) (FirstCount + SecondCount) - 1
- Question 2: FirstCount is 4 and SecondCount is 3. What is Secret? 6 / six
- Question 3: What decides which result message appears? c) Whether Guess equals Secret
Worksheet 2
- Question 4: Why store the first answer before the second ASK? a) The next reply replaces answer
- Question 5: How many separate variables hold the first two inputs? c) 2
Worksheet 3
- Question 6: Which programming structure chooses the feedback? b) Selection
Worksheet 4
- Question 7: What Secret is stored in test B? 7 / seven
- Question 8: Which message should test B give? a) Try again next round
- Question 9: What Secret is stored in test C? 1 / one
Worksheet 5
- Question 10: Model A Found
- Question 11: Model B Search
- Question 12: Model C Found
Worksheet 6
- Question 13: Give one fresh test with your own valid FirstCount, SecondCount and Guess. State Secret and the expected feedback. Accept FirstCount and SecondCount whole numbers from 1 to 9 and Guess from 1 to 17, Secret = (FirstCount + SecondCount) - 1, and Match! exactly when Guess = Secret, otherwise Try again next round. For example, 9, 9, 17 gives Secret = 17 and Match! All values and feedback must agree. Grown-up review.
- Question 14: Name one criterion, the evidence you checked, and one useful improvement for a later version. Accept criterion with observable evidence, e.g. wrong guess produces the other message, second run replaces both old inputs, or formula gives predicted Secret. Improvement may validate input ranges, add higher/lower guidance, explain rules on a welcome screen, or allow another guess using a properly planned loop. Distinguish proposed improvement from current behaviour. Grown-up review.
Curriculum & workbook reference
- Cambridge Primary Computing Learner’s Book 5 — pages 118–120
- PaxaKids Grade 5 Computing Lesson 1.29: Paxa Mystery Number — pages 1–6
Computing for your homeschool day
Explore Paxa Mystery Number with this free Grade 5 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 curriculum background, visit the Cambridge Primary Computing overview.
The book pages identify the related computing topic. The teaching and workbook activities are original PaxaKids learning materials.
