| Lesson Plan | |
| Grade: | Date: 17/01/2026 |
| Subject: Computer Science | |
| Lesson Topic: Test algorithms using trace tables and test data | |
Learning Objective/s:
|
|
Materials Needed:
|
Introduction: Begin by asking students to imagine a program that works perfectly for most inputs but crashes on a few unexpected ones. Recall that they already know how to write basic pseudocode. Explain that today they will learn how to systematically test those algorithms using trace tables and carefully chosen test data, and they will be able to demonstrate their success by producing accurate trace tables for multiple test cases. |
Lesson Structure:
|
|
|
Conclusion: Recap the steps for creating trace tables and the importance of covering all four test‑data categories. For the exit ticket, ask each student to write one additional test case they would add for the algorithm and explain why. Assign homework: choose a new simple algorithm (e.g., calculate the average of five numbers) and produce a complete set of trace tables using normal, boundary, extreme, and error test data. |
|
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.