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?

  1. A.

    Values of local variables

  2. B.

    Return address

  3. C.

    Heap area

  4. 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.

Explore the full course: Isro