Which of the following is NOT represented in a subroutine's activation record…
2014
Which of the following is NOT represented in a subroutine's activation record frame for a stack-based programming language?
- A.
Values of local variables
- B.
Return address
- C.
Heap area
- D.
Information needed to access non local variables
Attempted by 65 students.
Show answer & explanation
Correct answer: C
An activation record, or stack frame, is allocated on the call stack and contains essential execution context for a subroutine. It typically stores local variables, return addresses, and access links required to support function calls within the program. The heap area is a separate memory region used for dynamic allocation and is not part of the stack-based activation record structure.