The correct matching for the following pairs is: A. Activation record 1.…

1996

The correct matching for the following pairs is:

A. Activation record 1. Linking loader

B. Location counter 2. Garbage collection

C. Reference counts 3. Subroutine call

D. Address relocation 4. Assembler

Answer: D. A-3, B-4, C-2, D-1Let's match each concept in the left column to its correct utility or tool on the right column: A. Activation record -> 3. Subroutine call An activation…

  1. A.

    A-3, B-4, C-1, D-2

  2. B.

    A-4, B-3, C-1, D-2

  3. C.

    A-4, B-3, C-2, D-1

  4. D.

    A-3, B-4, C-2, D-1

Attempted by 47 students.

Show answer & explanation

Correct answer: D

Let's match each concept in the left column to its correct utility or tool on the right column:

  • A. Activation record -> 3. Subroutine call An activation record (also known as a stack frame) is a data structure managed in memory at runtime whenever a subroutine (function or procedure) is called. It stores critical runtime execution data such as local variables, parameters, and the return address.

  • B. Location counter -> 4. Assembler The location counter is an internal tool used by an assembler during the translation of assembly language into machine code. It keeps track of the relative memory addresses of instructions and data allocations as they are processed sequentially.

  • C. Reference counts -> 2. Garbage collection Reference counting is a foundational algorithm used in automated memory management and garbage collection. It tracks the number of active references, pointers, or handles pointing to a specific block of dynamically allocated memory. When the count drops to zero, the garbage collector safely reclaims the memory.

  • D. Address relocation -> 1. Linking loader Address relocation is the process of modifying absolute memory addresses within an executable file so that it can run properly when loaded at an arbitrary, non-zero memory address. This task is handled dynamically right before execution by the linking loader.

Combining these individual pairs: A-3, B-4, C-2, D-1

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…