Subroutines and recursion
Functions and procedures, parameters passed by value and by reference, local and global scope, recursion with base and general cases, tracing calls and returns, the call stack, Fibonacci and the Towers of Hanoi, memoisation and stack overflow.
A-level Computer ScienceChapter 21Component 02Three sessions · about 4 hours
Subroutines and recursion: quiz
Fifteen questions on functions and procedures, parameter passing, scope, recursion, tracing recursive calls and efficiency. Every wrong option comes from a common mistake, and its feedback explains why.
Preparing your quiz…
Key learning objectives
- Understand the key principles behind Subroutines and recursion.
- Apply these ideas to exam-style questions.
- Recall the essential definitions and key terms.