Consider the following fields F1: frame pointer link F2: access link F3: local…

Consider the following fields

F1: frame pointer link

F2: access link

F3: local variable

F4: return pointer

Which of the fields present in the activation record?

Answer: D. F1,F2,F3,F4An activation record (also called a stack frame) stores information needed to manage a function call. It typically includes: Frame pointer link (F1): Used to…

  1. A.

    F1,F2

  2. B.

    F1,F3

  3. C.

    F2,F3,F4

  4. D.

    F1,F2,F3,F4

Attempted by 55 students.

Show answer & explanation

Correct answer: D

An activation record (also called a stack frame) stores information needed to manage a function call. It typically includes:

  • Frame pointer link (F1): Used to mark the start of the current stack frame and to compute fixed offsets to local variables and parameters.

  • Access link (F2): Used in languages with nested scopes to access non-local variables by pointing to the activation record of an enclosing procedure.

  • Local variable (F3): Storage space for the function's local variables and temporaries.

  • Return pointer (F4): The saved return address indicating where execution should continue after the function returns.

Because activation records commonly include the frame pointer link, access link, space for local variables, and the return pointer, the correct set of fields consists of all four listed components.

Explore the full course: Isro

Loading lesson…