GRADE 8 · COMPUTING · UNIT 1 · LESSON 1.17

Computational thinking and programming

Practise and communicate the search

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

Topic 1.17 · Practise and communicate the search10 fillable worksheet pagesRead at your own pace

LET’S TRACE, REASON AND TEST

Practise and communicate the search

Communicate a search using its target, ordered comparisons, stopping rule and result. Distinguish a paper trace from an executed program. A trace should give another reader enough information to repeat your reasoning.

Today’s two goals
  • Use hidden cards, spoken instructions or an animation to show a faithful sequence of comparisons and review the method.
  • Explain my method and support it with a labelled trace, example or test record.
Original PaxaKids illustration for Practise and communicate the search. Use the supplied program and data models for precise workbook facts.
An original PaxaKids workbook scene. Use the supplied programs and data for precise workbook facts.

Work through an example

A useful record says: target 9; checked positions 1 and 2 without a match; matched position 3; stopped at the first match. A separate run record states whether code was actually executed.

Try before your workbook

What key detail is missing from the statement It found the number?

Explore the clues

Tap one card to find out more.

Understand the idea

Communicate a search using its target, ordered comparisons, stopping rule and result. Distinguish a paper trace from an executed program. A trace should give another reader enough information to repeat your reasoning.

Concept to practise: Practise and communicate the search.

Work through an example

A useful record says: target 9; checked positions 1 and 2 without a match; matched position 3; stopped at the first match. A separate run record states whether code was actually executed.

Try before your workbook

What key detail is missing from the statement It found the number?

Check my readiness thinking

It does not state the target, inspected order or matching position. Add those details and identify whether the evidence is a trace or a real execution.

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.

Communicate every comparison clearly

A faithful search explanation shows the target, current position, inspected value, comparison result and next action. It must show both success and exhaustion.

Spoken instructions, a paper storyboard or digital animation can communicate the same algorithm. Keep a prepared plan distinct from a demonstration that has actually been performed.

Use the complete original numeric dataset

Keep this fixed order for the workbook traces. Positions start at 1. Target 29 is present; target 6 is absent. Even when the row is visible, simulate the algorithm one comparison at a time rather than jumping to an answer.
Use the complete original numeric dataset — original labelled workbook model. The following text version gives its labels and values.
Use the complete original numeric dataset · original PaxaKids model.
Read this model’s labels and values
Labels
  1. 42
  2. 8
  3. 17
  4. 63
  5. 29
  6. 14
  7. 51

Complete the present-target execution record

For target 29, inspect consecutive positions. Count each comparison, then select the next action. This table ends when the first match is reached.
Complete the present-target execution record — original model
Pos.ValueMatches 29?Next action
142{'clue': 'Yes or No', 'prompt': 'Target29 at position 1: match', 'answers': ['No']}{'clue': 'Stop or continue', 'prompt': 'Target29 after position 1: action', 'answers': ['Continue']}
28{'clue': 'Yes or No', 'prompt': 'Target29 at position 2: match', 'answers': ['No']}{'clue': 'Stop or continue', 'prompt': 'Target29 after position 2: action', 'answers': ['Continue']}
317{'clue': 'Yes or No', 'prompt': 'Target29 at position 3: match', 'answers': ['No']}{'clue': 'Stop or continue', 'prompt': 'Target29 after position 3: action', 'answers': ['Continue']}
463{'clue': 'Yes or No', 'prompt': 'Target29 at position 4: match', 'answers': ['No']}{'clue': 'Stop or continue', 'prompt': 'Target29 after position 4: action', 'answers': ['Continue']}
529{'clue': 'Yes or No', 'prompt': 'Target29 at position 5: match', 'answers': ['Yes']}{'clue': 'Stop or continue', 'prompt': 'Target29 after position 5: action', 'answers': ['Stop']}

Read the full absent-target execution record

This separate search uses target 6 with the same collection. No value matches. The last action depends on having checked all seven available items.
Read the full absent-target execution record — original model
Pos.ValueEquals target 6?Action
142NoContinue
28NoContinue
317NoContinue
463NoContinue
529NoContinue
614NoContinue
751NoStop: not found

Plan the animation before choosing software

Use this original frame plan for the present-target search. Each frame can show covered cards and reveal only the currently inspected value. A frame counter is a record of comparisons, not a score.
Plan the animation before choosing software — original model
FrameReveal at positionCaption / action
11 : 42No match; continue
22 : 8No match; continue
33 : 17No match; continue
44 : 63No match; continue
55 : 29Match; stop at position 5

Review search purpose, method choice and traces

Many searching algorithms and variants exist. The best method depends on the data and requirements; there is no fixed total or one method that wins in every situation. Our linear first-match routine inspects a defined sequence.

Review four source skill areas using evidence

Use these original skill statements in your final reflection. Select Ready, Practising or Pending for each and cite exact work. A revised trace can be evidence of improvement.
Review four source skill areas using evidence — original model
IDSkill to demonstrate
1Give a realistic example of a software search.
2Explain why a systematic search is needed.
3Describe linear search, including both stopping conditions.
4Perform and record a linear search accurately.

Prepare an instructor and executor role swap

For the paired activity, keep the page 2 row fixed. First one person gives exact instructions for present target 29 while the other performs them. Then swap roles and search for absent target 6. If no partner is available, keep a labelled individual simulation and mark actual role exchange Pending.
Prepare an instructor and executor role swap — original model
StageWhat to record
BeforeDataset/order, target, instructor/executor roles or individual mode.
At each stepPosition, inspected value, equality result and next action.
At successFirst matching position and comparison count; stop.
At exhaustionNo unchecked item remains, not found and total comparisons.
After role swapActual second execution or Pending; no shortcuts.
ReflectionTwo evidenced strengths, one next step and a memory aid.

Files for this activity

Use these original PaxaKids practice files with the matching workbook. Work on a local copy in the appropriate editor. Some examples deliberately contain faults to investigate; a downloaded file is not a completed practical test.

Paxa the Fox

Try one step with Paxa!

Trace code in the stated order and preserve exact spelling and case. Use fictional data. Label a prediction, paper trace, simulator run and physical-device test separately; an unperformed test stays Pending. Save personal responses before leaving.

Our Unit 1 learning path
  1. Lesson 1.1: Recall algorithms and representations
  2. Lesson 1.2: Purpose and conventions of pseudocode
  3. Lesson 1.3: Input, output and strings
  4. Lesson 1.4: Identifiers and assignment
  5. Lesson 1.5: Arithmetic and translation
  6. Lesson 1.6: Trace and review a sequence
  7. Lesson 1.7: Conditions and two-way flow
  8. Lesson 1.8: IF THEN and indentation
  9. Lesson 1.9: IF THEN ELSE and decision diagrams
  10. Lesson 1.10: Ordered ELSEIF and fallback ELSE
  11. Lesson 1.11: Match flowchart and pseudocode branches
  12. Lesson 1.12: AND, OR and NOT
  13. Lesson 1.13: Grouping, precedence and review
  14. Lesson 1.14: Why software searches
  15. Lesson 1.15: A successful linear search
  16. Lesson 1.16: An unsuccessful search and termination
  17. Lesson 1.17: Practise and communicate the search
  18. Lesson 1.18: Translate conditions into Python
  19. Lesson 1.19: One-branch IF programs
  20. Lesson 1.20: Two-way IF ELSE programs
  21. Lesson 1.21: Ordered ELIF choices
  22. Lesson 1.22: Ranges and independent decisions
  23. Lesson 1.23: Boolean operators in Python
  24. Lesson 1.24: Design and test recommendations
  25. Lesson 1.25: Trace, debug and reflect
  26. Lesson 1.26: Choose data types and recognise Boolean literals
  27. Lesson 1.27: Set and use Boolean flags
  28. Lesson 1.28: Explain and identify constants
  29. Lesson 1.29: Express constants in three algorithm forms
  30. Lesson 1.30: Use a fixed factor in a calculation
  31. Lesson 1.31: Cast to Boolean and validate an empty response
  32. Lesson 1.32: Recall calls and trace return values
  33. Lesson 1.33: Supply parameters and reuse library code
  34. Lesson 1.34: Choose and import libraries responsibly
  35. Lesson 1.35: Round with floor and ceiling
  36. Lesson 1.36: Use pi and investigate another mathematical feature
  37. Lesson 1.37: Generate random choices within bounds
  38. Lesson 1.38: Investigate random real values and review library use
  39. Lesson 1.39: Retrieve test tables and predict selection outcomes
  40. Lesson 1.40: Decompose everyday problems
  41. Lesson 1.41: Decompose programs and organise shared work
  42. Lesson 1.42: Develop through repeated build/test cycles
  43. Lesson 1.43: Predict and verify algorithm outcomes
  44. Lesson 1.44: Choose representative and boundary tests
  45. Lesson 1.45: Build, execute and review a test plan
  46. Lesson 1.46: Recall physical inputs and compare transmission media
  47. Lesson 1.47: Configure a radio group and agree a message scheme
  48. Lesson 1.48: Send and receive numbers and strings
  49. Lesson 1.49: Trace numeric message sequences
  50. Lesson 1.50: Transmit text and use received data in conditions
  51. Lesson 1.51: Diagnose and extend a message protocol
  52. Lesson 1.52: Review communication and evidence of testing
  53. Lesson 1.53: Project 1: Adventure story
  54. Lesson 1.54: Project 2: Fire, Water, Earth
  55. Lesson 1.55: Check your progress 1
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 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.

Practise and communicate the search10 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 10 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 10 worksheets

Worksheet 1

  1. Question 1: Which instruction is precise enough to execute? compare the value at position 1 with target 29
  2. Question 2: What should remain unchanged within one search? the target being compared

Worksheet 2

  1. Question 3: At which position is 29 stored? 5
  2. Question 4: How many items are in this collection? 7

Worksheet 3

  1. Question 5: Target29 at position 1: match No
  2. Question 6: Target29 after position 1: action Continue
  3. Question 7: Target29 at position 2: match No
  4. Question 8: Target29 after position 2: action Continue
  5. Question 9: Target29 at position 3: match No
  6. Question 10: Target29 after position 3: action Continue
  7. Question 11: Target29 at position 4: match No
  8. Question 12: Target29 after position 4: action Continue
  9. Question 13: Target29 at position 5: match Yes
  10. Question 14: Target29 after position 5: action Stop

Worksheet 4

  1. Question 15: How many comparisons does this absent search make? 7

Worksheet 5

  1. Question 16: Which animation behaviour would misrepresent this search? jumping from position 1 directly to 5 because the animator knows the answer

Worksheet 6

  1. Question 17: Which task is a realistic software search? finding an equipment label in an inventory
  2. Question 18: What does linear mean in our search routine? move from one position to the next in the defined order
  3. Question 19: For the row cedar, maple, birch, pine, elm, how many comparisons find elm? 5
  4. Question 20: In that same five-value row, how many comparisons are needed for absent mango? 5

Worksheet 7

  1. Question 21: Which record is useful evidence of a search skill? a trace showing actual positions, comparisons and the stopping point

Worksheet 8

This page introduces the activity. There are no marked responses on this sheet.

Worksheet 9

  1. Question 22: Plan and create an animation or presentation showing a first-match linear search for 29 in the page 2 dataset. Use five successive comparison frames: start at position 1, reveal one item at a time and keep the target unchanged. Include position, inspected value, match result and stop/continue caption in every frame. End with the found position and comparison count. Use the space for a storyboard and cite the actual saved media file and preview evidence if created. If media software is unavailable, complete the storyboard and mark digital creation/preview Pending. Frames 1–5 inspect 42, 8, 17, 63, 29, unchanged target 29. First 4 no/continue, fifth yes/stop. Return position 5 with 5 comparisons; positions 6/7 uninspected. Hide uninspected values until reveal, preserve positions and layout; captions readable. Require original storyboard plus actual animation/presentation file/preview evidence if performed, otherwise clearly Pending digital stage. No fabricated recording, playback or learner GUI claim, no mandatory particular software or Python and no numeric marks. Grown-up review; personal evidence is required.

Worksheet 10

  1. Question 23: Use the page 8 protocol to direct and perform a search for 29, then swap roles for absent target 6. Record every inspected position/value, comparison and stopping action, or cite the complete saved execution records. If alone, do an individual simulation and mark the real role exchange Pending. Explain how you remembered the steps, identify two evidenced strengths and one change for next time. Finally give Ready, Practising or Pending plus exact evidence for each of the four page 7 skill IDs. Distinguish actual execution, prepared instructions, storyboard and any digital or partner stages still Pending. Present 29: positions 1–5 values 42, 8, 17, 63, 29 -> first 4 no/continue, fifth yes/stop; found position 5/count 5. Absent 6: positions 1–7 all no, not found/count 7, no beyond-end read. Actual instructor/executor role swap only if performed; otherwise clear individual simulation and Pending actual peer stage. Source reflection requires two positive evidenced working practices, one next change and memory strategy. Four source skills retained in order with honest Ready/Practising/Pending and precise trace/script/storyboard evidence. Digital preview only if actually observed. No numeric scores or invented activity evidence. Grown-up review; personal evidence is required.
Back to my workbook ↑

Curriculum & workbook reference

Computing for your homeschool day

Explore Practise and communicate the search with this free Grade 8 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.

Book page references identify the related teaching topic. File-management and responsible-data preparation are original PaxaKids material; orientation or contents pages are not presented as teaching citations for those skills. 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.