| Lesson Plan | |
| Grade: Grade 10 | Date: 17/01/2026 |
| Subject: Computer Science | |
| Lesson Topic: Understand and use local and global variables | |
Learning Objective/s:
|
|
Materials Needed:
|
Introduction: Begin with a short poll asking students where they think a variable “lives” in a program. Review that variables have a type, name, and value, and link this to prior lessons on data types. State that by the end of the lesson they will be able to choose the correct scope and justify their choice. |
Lesson Structure:
|
|
|
Conclusion: Recap the key differences between local and global variables and why scope matters for readability and debugging. Collect exit tickets to gauge understanding, and assign a short homework task: rewrite a given program to eliminate all unnecessary global variables. |
|
Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources, past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.