Grade 5 Science Computing Devices β Coding Notes
Science β Computing Devices
Subtopic: Coding (for age 10, Kenya)
Coding means writing instructions that tell a computing device (like a tablet, laptop, phone or micro:bit) what to do. In Kenyan schools you may use a tablet from the Digital Literacy Programme, a school computer, or your phone. Coding helps these devices solve problems, play games, and do useful tasks.
Learning objectives
- Understand what coding is and why we use it with computing devices.
- Learn simple coding ideas: sequence, loop, condition and event.
- Try a small coding activity you can do in Scratch or with a micro:bit.
Computing devices you might know π₯οΈ π» π±
π₯οΈ
DesktopUsed in labs
π»
LaptopPortable computer
π±
Phone / TabletOften used at home or in DLP
π
Micro:bit / Circuit boardSmall device for school projects
What is coding? (simple)
Think of coding like telling a friend how to make tea. You give step-by-step instructions. A computer needs very clear steps too. Those steps written in a language the computer understands is called code.
Basic coding ideas
- Sequence β steps in order. (Do A, then B, then C.)
- Loop β repeat actions. (Do this 4 times.)
- Condition β do something only if a true condition happens. (If it rains, use an umbrella.)
- Event β start when something happens. (When the green flag is clicked.)
Example: Make a sprite dance (Scratch style)
Below are simple blocks like in Scratch. You can try these on a computer or tablet:
When green flag clicked
Repeat 4 times
Move 10 steps
Turn 15 degrees
Play sound
This tells the sprite: when you start, repeat 4 times β move, turn, play sound.
Code-like text example (pseudocode)
when green_flag clicked:
repeat 4:
move 10
turn 15
play sound "pop"
repeat 4:
move 10
turn 15
play sound "pop"
Small classroom activity (10β15 minutes)
- Pick a computing device (tablet, laptop or micro:bit).
- Think of a short action for a character (sprite) β e.g., jump, wave, spin.
- Write the steps in order on paper (sequence).
- Turn the steps into simple code blocks (like the Scratch example).
- Run the code. If it does not work, check each step and try again (debugging).
Debugging tips
- Read your steps: is one instruction missing? (Sequence)
- Run one block at a time to find the problem.
- Ask a classmate or teacher for help β two minds are better!
Quick quiz (try these)
- What is coding in one sentence?
- Give an example of a loop (write a short sentence).
- What device in your school can you use to learn coding?
Answers (check after you try):
- 1. Coding is writing instructions that tell a device what to do.
- 2. Loop example: "Repeat 5 times: jump".
- 3. Answer could be: tablet, school computer, laptop or micro:bit.
Glossary (simple)
- Algorithm β a list of steps to solve a problem.
- Code β the instructions we write for a device.
- Bug β a mistake in the code.
- Debug β find and fix bugs.
- Sprite β a character you control in Scratch.
Have fun coding! Try small steps, and donβt be afraid to make mistakes β that is how you learn.