Exam-style question
Try this first
What normally happens to a subroutine's stack frame when that subroutine returns?.
- A.It is removed from the stack
- B.It is copied permanently into the program code
- C.It becomes the stack frame for every later subroutine call
- D.It is moved to the bottom of the stack and kept indefinitely
Answer and explanation
Concise answer
It is removed from the stack
Why this is correct
When the subroutine finishes, its stack frame is no longer needed. It is removed, allowing the stack to return to the state associated with the caller.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
