Coding Notes, Quizzes & Revision
0 of 5 free subtopics used this month
π Revision Notes β’ π Quizzes β’ π Past Papers
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 π₯οΈ π» π±
Used in labs
Portable computer
Often used at home or in DLP
Small 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:
Code-like text example (pseudocode)
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?
- 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.
When you finish reading, reach the end of the notes and the completion button will appear here.
π§ Quick 5-question quiz
Test what you have just learned from Coding. No account is needed to try it. Your attempt is saved only when you submit. After this browser has passed its first human check, returning visits open the quiz directly.