| Lesson Plan | |
| Grade: | Date: 17/01/2026 |
| Subject: Computer Science | |
| Lesson Topic: Understand local and global variable scope | |
Learning Objective/s:
|
|
Materials Needed:
|
Introduction: Begin with a quick poll: “Where have you seen variables that affect the whole program?” Connect this to prior knowledge of variables from earlier lessons. Explain that today’s success criteria are to recognise scope, use the |
Lesson Structure:
|
|
|
Conclusion: Recap the key differences between global and local scope and why proper use improves readability and debugging. Collect exit tickets to gauge understanding, and assign a short homework task: rewrite a given program using only local variables where possible. |
|
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.