# GATE - 1996 | OS | The correct matching for the following pairs is

## Questions:

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


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

## Solution:

### Option (D) is Correct.

Each time a subroutine is called its activation record is created.

An assembler uses location counter value to give address to each instruction which is needed for relative addressing as well as for jump labels.

Reference count is used by garbage collector to clear the memory whose reference count be comes 0.