Activity 01
Role Play: Human Call Stack
Assign one student per recursive call for a small example like factorial of 4. Each student is one stack frame: they receive a value, write it down, call the next student forward, wait for a return value, compute their result, and report back. The class watches the call stack build and unwind physically, making the base case and unwinding behavior concrete.
Explain the base case and recursive step in a recursive function.
Facilitation TipDuring the Human Call Stack, have students physically stand up as they call the function and sit down only when they hit the base case so the unwinding is visible to the whole room.
What to look forPresent students with a pseudocode snippet of a recursive function. Ask them to identify the base case and the recursive step, and write one sentence explaining how the input changes in the recursive step.