Encoding information
About this lesson

A code is an agreed system of signs for showing information. Turning information from one form into another is encoding; turning it back is decoding. Codes are everywhere: road signs, traffic-light colours, musical notes, letters and digits. In Morse code each letter is written with dots and dashes: SOS is “· · · — — — · · ·”. A computer “knows” only two signs, 0 and 1 (no current and current). This is binary code. Text, pictures, sound and video are all stored as strings of 0s and 1s. The key rule: sender and receiver must use the same code.
What the book shows
In grade 5 the computer science textbook has units on information, the computer, applications, algorithms and the internet. Each topic gives a short explanation, an example and a task done on or off the computer.
Textbook link:
This is not the textbook’s text but a short description of the topic. Check the exact page in your own textbook.
The lesson step by step
- 1
Warm-up5 min
A secret-letter game.
- 2
New topic10 min
Codes and encoding.
- 3
Practice10 min
Morse code.
- 4
Game10 min
Binary code.
- 5
Wrap-up5 min
Building our own code.
Let’s understand
For the student Simple language

| Code | Signs | Example |
|---|---|---|
| traffic light | 3 colours | 🔴 stop · 🟢 go |
| Morse | dot, dash | SOS = · · · — — — · · · |
| binary | 0, 1 | 1 0 1 1 |
For the parent
How to help
- Invent a secret code together (a picture or number for each letter) and swap short notes.
For the teacher
Lesson goals
- Know what a code and encoding are, write and read a message in a simple code, and explain that a computer stores everything as 0s and 1s.
How to teach it
- Hands-on computer work, unplugged modelling, pair work, mini-project
Differentiation
- Weaker pupils follow the model step by step; stronger pupils design and test their own task
Questions for the class
- Why do we encode information?
How to check
The pupil encodes and decodes with a simple code and explains binary.
Scientific Scientific language
Why 0 and 1?
Electronics tells two states apart most easily: current on or off.
Length
Fewer signs make longer codes: binary needs several digits for one letter.
Self-study
Step by step
- I explained what a code is.
- I wrote a word in a simple code.
- I decoded someone else’s message.
- I said what 0 and 1 do.
Going deeper
Scientific language: for older students, parents and teachers.
Every photo you send by phone becomes millions of 0s and 1s and is turned back into a picture on the other phone.
Play and check
Which kind of code?
How to write it down
- Make a letter–number table (A=1, B=2…) and encode your name.
- Decode a friend’s word.
How the classwork looks in the notebook
Sample: the date and heading follow this country’s notebook rules.
Watch out: common mistakes
Where it helps in life
- Measuring information: bits and bytes
At home
Core
- Find and list 5 codes at home.
Extra ⭐
- Write one sentence in your own code and give the key separately.
How to do it
- Do the task with a grown-up.
- Explain in words what you noticed.
Answers for parents
Examples: traffic lights, a barcode, clock hands, musical notes, washing-machine symbols.
Step-by-step homework solution — Show the solution (try it yourself first)
Think
- How many two-digit codes can 0 and 1 make? 00, 01, 10, 11: four. Three digits make eight. Each extra digit doubles the options.
How the homework looks in the notebook
Sample: the date and heading follow this country’s notebook rules.