| Lesson Plan | |
| Grade: | Date: 17/01/2026 |
| Subject: Computer Science | |
| Lesson Topic: Show awareness of what a compiler has to do to translate recursive programming code | |
Learning Objective/s:
|
|
Materials Needed:
|
Introduction: Begin with a quick question: What happens inside a program when a function calls itself? Review prior learning on recursion and call‑stack basics. Explain that today’s success criteria are to understand how a compiler translates such calls and to recognise optimisation opportunities. |
Lesson Structure:
|
|
|
Conclusion: Summarise how the compiler builds the call stack and where optimisation can reduce its depth. Have students write an exit‑ticket note describing a situation where tail‑call optimisation would be beneficial. Assign homework to research how another programming language handles recursion and optimisation. |
|
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.