GRADE 8 · COMPUTING · UNIT 1 · LESSON 1.48
Computational thinking and programming
Send and receive numbers and strings
Read a little. Try the workbook. Check your answers. Choose one section below to get started.
LET’S TRACE, REASON AND TEST
Send and receive numbers and strings
Numbers and strings are distinct radio message types. Use a matching send operation and receive handler, then process the received value. Make the data contract explicit instead of assuming the receiver infers meaning.
- Match send and receive event types, use event parameters and explain the role of each device's program.
- Explain my method and support it with a labelled trace, example or test record.

Work through an example
A numeric message 12 and a string message "12" are different payload types. The corresponding number or string handler receives the value for its declared type.
Try before your workbook
Which kind of handler should receive a message sent with sendString("Ready")?
Explore the clues
Tap one card to find out more.
Understand the idea
Numbers and strings are distinct radio message types. Use a matching send operation and receive handler, then process the received value. Make the data contract explicit instead of assuming the receiver infers meaning.
Concept to practise: Send and receive numbers and strings.
Work through an example
A numeric message 12 and a string message "12" are different payload types. The corresponding number or string handler receives the value for its declared type.
Try before your workbook
Which kind of handler should receive a message sent with sendString("Ready")?
Check my readiness thinking
A string receive handler. A number receive handler is not the matching contract for that message type.
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.
Give each device the program for its role
The complete original pairs here use group 17. Save and identify the sender and receiver files separately. Run the receiver before triggering the sender when practical testing is available; a paper trace is not evidence of radio delivery.
Send a number and display its received value
Number sender
radio.setGroup(17)
input.onButtonPressed(Button.A,
function () {
radio.sendNumber(12)
})Number receiver
radio.setGroup(17)
radio.onReceivedNumber(
function (receivedNumber) {
basic.showNumber(receivedNumber)
})Use the event parameter inside the handler
| Stage | Action |
|---|---|
| Incoming data | A received number, such as 12 |
| Handler parameter | receivedNumber holds that call’s value |
| Output | showNumber uses the received value |
Send a stored string and scroll received text
String sender
let word = "READY"
radio.setGroup(17)
input.onButtonPressed(Button.B,
function () {
radio.sendString(word)
})String receiver
radio.setGroup(17)
radio.onReceivedString(
function (receivedString) {
basic.showString(receivedString)
})Match the send operation with a receive-event type
| Send operation | Appropriate receive-event type |
|---|---|
| radio.sendNumber(12) | {'clue': 'Number or String', 'prompt': 'Matching event for radio.sendNumber(12)', 'answers': ['Number']} |
| radio.sendString("12") | {'clue': 'Number or String', 'prompt': 'Matching event for radio.sendString("12")', 'answers': ['String']} |
| radio.sendString(word) | {'clue': 'Number or String', 'prompt': 'Matching event for radio.sendString(word)', 'answers': ['String']} |
| radio.sendNumber(-3) | {'clue': 'Number or String', 'prompt': 'Matching event for radio.sendNumber(-3)', 'answers': ['Number']} |
| radio.sendString("A") | {'clue': 'Number or String', 'prompt': 'Matching event for radio.sendString("A")', 'answers': ['String']} |
| radio.sendString("READY") | {'clue': 'Number or String', 'prompt': 'Matching event for radio.sendString("READY")', 'answers': ['String']} |
Model shared message meanings with paper slips
This codebook models shared representation; it is not secure encryption.
| Word | Paper code |
|---|---|
| READY | 31 |
| TEAM | 52 |
| NOW | 74 |
Identify the saved files and interpret what they do
| File/role | Required behaviour |
|---|---|
| Number sender | A event broadcasts numeric 12. |
| Number receiver | Number event displays its received value. |
| String receiver | String event scrolls its received text. |
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.

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
- Lesson 1.1: Recall algorithms and representations
- Lesson 1.2: Purpose and conventions of pseudocode
- Lesson 1.3: Input, output and strings
- Lesson 1.4: Identifiers and assignment
- Lesson 1.5: Arithmetic and translation
- Lesson 1.6: Trace and review a sequence
- Lesson 1.7: Conditions and two-way flow
- Lesson 1.8: IF THEN and indentation
- Lesson 1.9: IF THEN ELSE and decision diagrams
- Lesson 1.10: Ordered ELSEIF and fallback ELSE
- Lesson 1.11: Match flowchart and pseudocode branches
- Lesson 1.12: AND, OR and NOT
- Lesson 1.13: Grouping, precedence and review
- Lesson 1.14: Why software searches
- Lesson 1.15: A successful linear search
- Lesson 1.16: An unsuccessful search and termination
- Lesson 1.17: Practise and communicate the search
- Lesson 1.18: Translate conditions into Python
- Lesson 1.19: One-branch IF programs
- Lesson 1.20: Two-way IF ELSE programs
- Lesson 1.21: Ordered ELIF choices
- Lesson 1.22: Ranges and independent decisions
- Lesson 1.23: Boolean operators in Python
- Lesson 1.24: Design and test recommendations
- Lesson 1.25: Trace, debug and reflect
- Lesson 1.26: Choose data types and recognise Boolean literals
- Lesson 1.27: Set and use Boolean flags
- Lesson 1.28: Explain and identify constants
- Lesson 1.29: Express constants in three algorithm forms
- Lesson 1.30: Use a fixed factor in a calculation
- Lesson 1.31: Cast to Boolean and validate an empty response
- Lesson 1.32: Recall calls and trace return values
- Lesson 1.33: Supply parameters and reuse library code
- Lesson 1.34: Choose and import libraries responsibly
- Lesson 1.35: Round with floor and ceiling
- Lesson 1.36: Use pi and investigate another mathematical feature
- Lesson 1.37: Generate random choices within bounds
- Lesson 1.38: Investigate random real values and review library use
- Lesson 1.39: Retrieve test tables and predict selection outcomes
- Lesson 1.40: Decompose everyday problems
- Lesson 1.41: Decompose programs and organise shared work
- Lesson 1.42: Develop through repeated build/test cycles
- Lesson 1.43: Predict and verify algorithm outcomes
- Lesson 1.44: Choose representative and boundary tests
- Lesson 1.45: Build, execute and review a test plan
- Lesson 1.46: Recall physical inputs and compare transmission media
- Lesson 1.47: Configure a radio group and agree a message scheme
- Lesson 1.48: Send and receive numbers and strings
- Lesson 1.49: Trace numeric message sequences
- Lesson 1.50: Transmit text and use received data in conditions
- Lesson 1.51: Diagnose and extend a message protocol
- Lesson 1.52: Review communication and evidence of testing
- Lesson 1.53: Project 1: Adventure story
- Lesson 1.54: Project 2: Fire, Water, Earth
- 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.
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 9 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.0 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 9 worksheets
Worksheet 1
- Question 1: What determines which program belongs on a device? the role and behaviour that device needs
- Question 2: What must the receiver program contain to display incoming data? an appropriate receive handler and output code
Worksheet 2
- Question 3: Which group is explicitly set by both programs? 17
- Question 4: What number does the sender transmit when A is pressed? 12
- Question 5: Which parameter supplies the received number to the handler? receivedNumber
Worksheet 3
- Question 6: Where does the handler’s receivedNumber value come from? the incoming radio event
- Question 7: If the parameter is renamed packetValue, what should showNumber use? packetValue
- Question 8: For an incoming number 31, what value should this receiver display? 31
Worksheet 4
- Question 9: Which variable stores the text before sending? word
- Question 10: Write the transmitted text without quotation marks. READY
- Question 11: Which receiver parameter supplies the text? receivedString
Worksheet 5
- Question 12: Matching event for radio.sendNumber(12) Number
- Question 13: Matching event for radio.sendString("12") String
- Question 14: Matching event for radio.sendString(word) String
- Question 15: Matching event for radio.sendNumber(-3) Number
- Question 16: Matching event for radio.sendString("A") String
- Question 17: Matching event for radio.sendString("READY") String
Worksheet 6
- Question 18: Which code represents TEAM? 52
- Question 19: Which word does code 74 represent? NOW
- Question 20: Decode 31, 52, 74 in order. READY TEAM NOW
Worksheet 7
- Question 21: What is the strongest practical evidence of the intended exchange? recorded sender input and receiver output
Worksheet 8
- Question 22: Build the complete page 2 number pair and page 4 string pair in MakeCode Blocks or JavaScript. Identify each device and saved source. Predict the group, send event, transmitted value, receiver parameter and output before testing. Trigger sending after the receiver is ready and record actual supported-environment/device observations or Pending. Also trace the renamed number receiver with incoming 31. Keep full programs, predictions, observations, corrections and retests; distinguish a model from a real radio exchange. Number pair: group 17 on both, sender A sends numeric 12, receivedNumber parameter supplies value to showNumber. Incoming 31 gives 31; consistently renamed packetValue version behaves the same. String pair: group 17, word stores READY, B sends its string value, receivedString supplies READY to showString for scrolling; literal quotation marks and identifier word are not the transmitted text. Correct matching receive-event types and distinct saved sender/receiver roles; receiver ready before trigger. Actual supported environment/device records or Pending, model traces labelled; no radio delivery, compilation or GUI success inferred from author stubs. Full source, corrections and retests retained. Grown-up review; personal evidence is required.
Worksheet 9
- Question 23: As a group if available, create an unambiguous word, letter or symbol codebook and give everyone a copy. In pairs, encode and pass one word at a time on separate slips, keeping message order, then decode and compare the original. Keep the codebook, slips or records, actual feedback, corrections and your contribution. If working alone, trace the page 6 sequence and a new message using its table, marking the physical/peer exchange Pending. Explain the analogy with sender, receiver and agreed data meaning, and its security limits. Shared complete unambiguous codebook, ordered one-word-per-slip encoding and decoding, original versus decoded message compared and any error corrected. Supplied alternative 31/52/74 -> READY TEAM NOW; a new message such as TEAM READY uses 52/31. Actual group/pair exchange or honest individual model with physical/peer exchange Pending. Clear sender/receiver/shared interpretation analogy, own contribution and retained records. Unknown codes trigger clarification rather than invented meanings. Simple codebook not robust encryption or confidentiality guarantee; no invented physical exchange or radio transmission. Grown-up review; personal evidence is required.
Curriculum & workbook reference
- Cambridge Lower Secondary Computing Learner’s Book 8 — pages 179–182
- PaxaKids Grade 8 Computing Lesson 1.48: Send and receive numbers and strings — pages 1–9
Computing for your homeschool day
Explore Send and receive numbers and strings 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.
