GRADE 5 · COMPUTING · UNIT 1 · LESSON 1.6
Computational thinking and programming
Trace inputs and comparisons
A program can use user input rather than fixed numbers. In our pseudocode, INPUT First means read the next supplied number and store it in First. Each INPUT reads one number, in the stated order.
LET’S LOOK, THINK AND TRY
Trace inputs and comparisons
A program can use user input rather than fixed numbers. In our pseudocode, INPUT First means read the next supplied number and store it in First. Each INPUT reads one number, in the stated order.
- Trace inputs and comparisons.
- Test operators using the supplied values and expected results.

Explore the clues
Tap one card to find out more.
Understand the idea
A program can use user input rather than fixed numbers. In our pseudocode, INPUT First means read the next supplied number and store it in First. Each INPUT reads one number, in the stated order. All test inputs in this lesson are valid numbers.
Read the complete program model
Follow two ordered inputs
Input and subtractINPUT FirstINPUT SecondSET Difference TO First - SecondSAY Difference
The user supplies 20 first, then 7. Run the complete pseudocode once from top to
bottom.
Explain with evidence
A club needs a program that reads two numeric item counts and displays their sum. In this pseudocode, INPUT reads and stores one number. Use any meaningful names, with no personal data.

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.5 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 does INPUT First do here? c) Stores the next input in First
- Question 2: Why use inputs for a calculator? b) The same program can use different numbers
- Question 3: What must be stated for a trace with two inputs? a) The input values and their order
Worksheet 2
- Question 4: Which value is stored in First? 20 / twenty
- Question 5: What value is output? 13 / thirteen
- Question 6: Which expression would reverse the subtraction? a) Second - First
Worksheet 3
- Question 7: What is output in run A? 5 / five
- Question 8: What is output in run B? -5 / minus five / negative five
- Question 9: What is output in run C? 0 / zero
Worksheet 4
- Question 10: Card B: ask for the first number 1
- Question 11: Card D: save the first answer 2
- Question 12: Card C: ask for the second number 3
- Question 13: Card A: save the second answer 4
Worksheet 5
- Question 14: 9 = 9 True
- Question 15: 4 = 6 False
- Question 16: (8 + 2) = 10 True
- Question 17: (12 - 5) = 8 False
Worksheet 6
- Question 18: Write the four instructions. Give the output for inputs 19, then 4. INPUT FirstCount; INPUT SecondCount; SET Total TO FirstCount + SecondCount; SAY Total. Output23. Accept consistent meaningful alternatives. Grown-up review.
- Question 19: Why should the program store each input rather than just print a fixed answer? Stored user inputs let the same calculation work for different supplied counts. A fixed answer would not adapt when the counts change. Grown-up review.
Curriculum & workbook reference
- Cambridge Primary Computing Learner’s Book 5 — pages 26–42
- PaxaKids Grade 5 Computing Lesson 1.6: Trace inputs and comparisons — pages 1–6
Computing for your homeschool day
Explore Using operators 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.
