pptx, 234.12 KB
pptx, 234.12 KB
docx, 90.85 KB
docx, 90.85 KB
pdf, 118.77 KB
pdf, 118.77 KB
docx, 91.16 KB
docx, 91.16 KB
pdf, 122.66 KB
pdf, 122.66 KB
docx, 89.76 KB
docx, 89.76 KB
jpg, 141.87 KB
jpg, 141.87 KB

Recursion clicks for some students straight away and completely loses others. This lesson takes it slowly: base case, general case, then a clear staircase diagram of Factorial(4) winding down and unwinding back up, followed by the call stack drawn out as a stack of frames.

Students then write SumTo, Power and CountDigits themselves in Python, and trace calls in the format 9618 mark schemes expect.

What’s included

  • 16-slide editable teacher PowerPoint, with speaker notes on every slide
  • Python starter code with guided TODOs and the full tested solution, in a Word file ready to copy into your editor (including a Fibonacci extension with two base cases)
  • Student worksheet (37 marks) in Word and PDF: tracing recursive calls, fill-the-gap code, spot-the-errors and exam-style questions on the call stack
  • Full answer key in Word and PDF

How the lesson runs

  • A starter on things that contain smaller copies of themselves
  • What recursion is, with base and general cases labelled
  • Key vocabulary: winding, unwinding and the call stack
  • Factorial(4) traced step by step, then SumTo, Power and the call stack
  • A spot-the-bug slide on a missing base case
  • A trace mini task on Power(2, 4) with answers
  • Recursion versus iteration
  • A coding task, exam-style question with mark scheme, and exit ticket

Written for Cambridge International AS & A Level Computer Science (9618), Paper 4 Practical, and pitched at A Level (Year 13). Everything is editable, so you can adapt it for your own classes.

Please leave a review if you find it useful. It really helps!

Reviews

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.