Activity 01
Pair Tracing: Factorial Calls
Pairs receive printed recursive factorial code and trace calls step-by-step on worksheets, noting base cases and stack growth. They compute results manually, then compare to iterative loops. Pairs share one insight with the class.
Differentiate between iterative and recursive approaches to problem-solving.
Facilitation TipDuring Pair Tracing: Factorial Calls, have students write each call on a separate sticky note to build a visible call stack on the desk.
What to look forPresent students with a short, non-working recursive function. Ask them to identify the missing base case or the incorrect recursive step and explain why it prevents the function from working correctly.