GRADE 9 · COMPUTING · UNIT 1 · LESSON 1.1

Computational thinking and programming

Pseudocode

Read a little. Try the workbook. Check your answers. Choose one section below to get started.

16 fillable worksheet pagesRead at your own pace

LET’S LOOK, THINK AND TRY

Pseudocode

I can…
  • Trace pseudocode with a value table and predict output
  • Locate an incorrect condition or assignment and explain its effect

Trace before changing a rule

INPUT supplies values, assignment stores or replaces a value, and OUTPUT displays a result. Read the workbook conventions: SET means assignment, while = inside its conditions means equality. Trace instructions in order and follow only the branch whose condition is true. A logic error can produce the wrong result even when an algorithm can run.

Check the boundary against the specification

A strict > test excludes the threshold; >= includes it. Before editing an algorithm, identify its current inputs, processing and outputs. Then amend the required rule and test normal, boundary and invalid cases. Pseudocode notation can vary, so use the definitions given with the task.

Original PaxaKids learning scene for Pseudocode. The scene supplies context, not assessed measurements or counts.
An original PaxaKids scene for this topic. Use the stated values and exact workbook diagrams for computing work.

Work through an original example

Original rule: eight items cost 12 credits each. Apply a 25% discount only when the subtotal is greater than 90 credits. Trace the total.

Work through the reasoning

Store the subtotal 8 × 12 = 96. The condition 96 > 90 is true, so replace the payable amount with 96 × 0.75 = 72. Output 72 credits. A subtotal exactly equal to 90 would not qualify because the rule says greater than.

Try it before the workbook

Using the same rule, what is payable for seven items at 12 credits each?

Use the example to choose your first step. This short preparation question is separate from your workbook. Open the check clue when you are ready.

Explore the clues

Open one card at a time to review your thinking.

Remember the idea

INPUT supplies values, assignment stores or replaces a value, and OUTPUT displays a result. Read the workbook conventions: SET means assignment, while = inside its conditions means equality. Trace instructions in order and follow only the branch whose condition is true. A logic error can produce the wrong result even when an algorithm can run.

Check your first try

84

7 × 12 = 84. The condition 84 > 90 is false, so no discount applies.

Explain and check
  • Match exact code outputs, binary widths and stated units. Explain your method.
  • Check the question, rules, outputs and units. Explain why your method works.
Paxa the Fox

Think it through with Paxa!

Trace the stated rules and distinguish predictions from actual observations.

Original computing practice files

Optional small offline examples and fictional datasets, created for PaxaKids. They are supplementary practice, not publisher downloads or complete implementations of every workbook project. The page does not execute these files. Inspect code with a grown-up before using it in an approved offline environment; do not use real personal data.

Our Unit 1 learning path
  1. Lesson 1.1: Pseudocode
  2. Lesson 1.2: Iteration
  3. Lesson 1.3: Creating algorithms
  4. Lesson 1.4: Loops in text-based programming
  5. Lesson 1.5: Programming with data
  6. Lesson 1.6: Comparing algorithms
  7. Lesson 1.7: Searching algorithms
  8. Lesson 1.8: Testing
  9. Lesson 1.9: Physical computing
  10. Lesson 1.10: Word guess
  11. Lesson 1.11: Flowchart - Pseudocode - Program code
  12. Lesson 1.12: Original Paxa project: Revision challenge app
  13. Lesson 1.13: Check your progress
  14. Lesson 1.14: Computational thinking and programming - unit check
For grown-ups: using this lesson

Discuss the idea and worked example, 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. Accept a sound alternative method.

Opening or checking a worksheet does not complete a lesson. Choose “Mark lesson finished” when ready. Optional account progress saves the selected grade, lesson position and completion across devices. Personal worksheet responses stay in this tab; save your own copy before leaving.

2. Fill in your workbook

Use the original diagrams and stated conventions. Choose, write or draw on the pages, or use the larger Answer List controls. Code examples here are for tracing; this page does not execute them or connect to hardware. Use fictional data and approved supervised tools for project work.

Pseudocode16 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 16 original A4 student pages, ready for pencil-and-paper practice. Choose Review Answers to check your work on this webpage.

Student worksheet only · PDF · 6.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 16 worksheets

Worksheet 1

  1. Question 1: What should guide a change to an algorithm? The amended specification

Worksheet 2

  1. Question 2: Which condition includes 100? total >= 100
  2. Question 3: What is pseudocode used for? Planning and explaining algorithm steps

Worksheet 3

  1. Question 4: Value of a after line 3 8
  2. Question 5: Value of b after line 4 6
  3. Question 6: Value of a after line 5 7
  4. Question 7: Which pair is displayed, in order? 7, 6

Worksheet 4

  1. Question 8: What payment is displayed when total is 120? 108 / 108.00
  2. Question 9: What payment is displayed when total is exactly 100? 100 / 100.00
  3. Question 10: Why is payment initialised before the IF? It supplies the full-price result when no discount applies

Worksheet 5

  1. Question 11: Total 90: condition total > 100 False / false
  2. Question 12: Total 90: payment 90 / 90.00
  3. Question 13: Total 100: condition total > 100 False / false
  4. Question 14: Total 100: payment 100 / 100.00
  5. Question 15: Total 110: condition total > 100 True / true
  6. Question 16: Total 110: payment 99 / 99.00
  7. Question 17: Which value most directly checks the phrase "over 100"? 100

Worksheet 6

  1. Question 18: Which test best challenges an initial smallest value of zero? Four positive input values

Worksheet 7

  1. Question 19: For inputs 9, 5, 7, 6, what is the actual output? 0
  2. Question 20: For inputs 9, 5, -2, 6, what is the actual output? 6

Worksheet 8

  1. Question 21: After line 2: smallest 9
  2. Question 22: After lines 3-5: smallest 5
  3. Question 23: After lines 6-8: smallest 2
  4. Question 24: After lines 9-11: smallest 2

Worksheet 9

  1. Question 25: Case A: output 2
  2. Question 26: Case B: output -7
  3. Question 27: Case C: output 4
  4. Question 28: Case D: output -2

Worksheet 10

  1. Question 29: Input 3: output Reject
  2. Question 30: Input 4: output Accept
  3. Question 31: Input 12: output Accept
  4. Question 32: Input 13: output Reject
  5. Question 33: Which change would wrongly reject the upper endpoint? Replace size <= 12 with size < 12

Worksheet 11

  1. Question 34: What happens for inputs 7 and 7? No output is produced
  2. Question 35: Which added condition supplies the missing case? IF first = second THEN OUTPUT "Equal"

Worksheet 12

  1. Question 36: Amended rule, total 90: payment 90 / 90.00
  2. Question 37: Amended rule, total 100: payment 90 / 90.00
  3. Question 38: Amended rule, total 110: payment 99 / 99.00
  4. Question 39: Which condition changed? > became >=

Worksheet 13

  1. Question 40: What belongs in an observed-output column before a run? Pending or Not run
  2. Question 41: What does one matching test result show? This case behaved as expected

Worksheet 14

  1. Question 42: With input Express, what does this faulty algorithm output? 8
  2. Question 43: Which replacement condition meets the specification? service = "Express"
  3. Question 44: Which expected outputs check both valid branches? Standard: 8; Express: 12

Worksheet 15

  1. Question 45: Write the corrected minimum algorithm. Trace inputs 9, 5, 2, 6, showing each stored smallest value. Explain both faults you corrected. A complete solution reads four values, sets smallest to first and independently compares second, third and fourth, assigning the corresponding input whenever it is smaller, then outputs smallest. Trace: initial value 9; after second input 5; after third input 2; after fourth input 2; output 2. Initial zero is wrong for all-positive cases: use first. The third comparison must store third rather than first. Accept alternative correct complete methods, clear equivalent pseudocode and well-labelled traces. Evaluate the actual submitted algorithm, not appearance alone. Grown-up review; discuss your evidence and reasoning.

Worksheet 16

  1. Question 46: Explain the condition change. Give the input, expected condition and expected payment for totals 90, 100 and 110 under both rules. Add one test just above 100 and explain what the tests can and cannot establish. Original rule, total > 100: input 90 gives False and payment 90; input 100 gives False and payment 100; input 110 gives True and payment 99. Amended rule, total >= 100: input 90 gives False and payment 90; input 100 gives True and payment 90; input 110 gives True and payment 99. Input 101 gives True and payment 90.90 for both rules; accept other suitable just-above values with correct arithmetic. Explain that the amendment includes 100 and that input 100 distinguishes the versions. Use normal and boundary cases. Predictions are not observed results; actual execution requires actual evidence or Pending. These cases support specified behaviour but do not prove correctness for every input or validate negative or text inputs. Accept equivalent explanations and clear tables. Grown-up review; discuss your evidence and reasoning.
Back to my workbook ↑

Curriculum & workbook reference

Computing for your homeschool day

Explore Pseudocode with this free Grade 9 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

Closed answers are checked in your browser. Drawings and written explanations 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 original practice follows the source topic teaching.

The page references identify the reviewed actual supplied book teaching and related practice. Only the cited Learner’s Book teaching pages are listed here. No matching publisher Workbook 9 was supplied or cited. The original PaxaKids workbook is the student download; no textbook scan is published. Explanations, worked models and student workbooks here are original PaxaKids companion material.

The source topic number is preserved.