
Recursion lesson for IB Diploma Computer Science (first assessment 2027), with editable PowerPoint slides, a student worksheet and full answers. Recursion is when a function calls itself on a smaller version of a problem, needing a base case to stop; students trace examples.
Written for the 2027 IB Computer Science guide, unit B2 Programming (HL only). Everything is editable, so you can adapt it to your class.
What’s included- PowerPoint lesson (12 slides) with speaker notes on every slide
- Student worksheet (Word), ready to print or edit
- Answer sheet (Word) with model answers for every question
By the end of the lesson students can:
- Explain recursion and identify the base case and the recursive case
- Trace a recursive function using the call stack
- Weigh up the advantages and disadvantages of recursion
Worksheet sections: A. Key words; B. Label and trace; C. Predict the output; D. Find the bug; E. Evaluate
Every lesson includes- Learning goals and a starter question
- Clear explanations with worked examples (Python where code is needed)
- A quick check and a “your turn” task linked to the worksheet
- An exit ticket
- PowerPoint (.pptx) and Word (.docx), fully editable
- Works in PowerPoint and Google Slides
- Calm pastel design, consistent across the whole IB course
These are independent resources written for the IB Diploma Programme Computer Science guide (first assessment 2027). They are not produced or endorsed by the International Baccalaureate Organization.
More lessons in this series- Previous lesson: Bubble sort and selection sort – IB Computer Science lesson
- Next lesson: Writing recursive algorithms – IB Computer Science lesson
- Save with the bundle: Programming – IB Computer Science (16 lessons)
Last updated: November 2026.
Something went wrong, please try again later.
This resource hasn't been reviewed yet
To ensure quality for our reviews, only customers who have purchased this resource can review it
Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.