Which of the following does not reside in the activation record block of a…

2021

Which of the following does not reside in the activation record block of a function?

Answer: A. Global variableAn activation record (stack frame) of a function contains: Local variables (non-static) Return address Control link / pointer to caller's activation record…

  1. A.

    Global variable

  2. B.

    Local variable with non-static scope

  3. C.

    Pointers to activation record block of parent function

  4. D.

    Function return information

Attempted by 276 students.

Show answer & explanation

Correct answer: A

An activation record (stack frame) of a function contains: Local variables (non-static)

Return address

Control link / pointer to caller's activation record

Temporary values

But global variables are not stored in the activation record because they are stored in a separate data segment , not on the stack. Therefore, global variables do not reside in the activation record block.

Explore the full course: Niacl Ao It Specialist

Loading lesson…