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
Explanation: The portion of the stack used for an invocation of a function is called the function’s stack frame or activation record.
An activation record is another name for Stack Frame. It’s the data structure that composes a call stack. It is generally composed of:
Locals to the callee
Return address to the caller
Parameters of the callee
Heap area is required in the case of dynamic variables.
So, option (C) is correct.
Quiz of this Question
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.