ISRO | ISRO CS 2014 | Question 51
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
Answer: (C)
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
Please Login to comment...