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

GATE - 1996 | OS | The correct matching for the following pairs is
Posted on 02-03-2022

GATE - 1996 [Operating System]

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
D. Address relocation      4. Assembler

(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.


Linker loader is a loader which can load several compiled codes and link them together into a single executable.

Thus it needs to do relocation of the object codes.

 

Thank You

Download App for Free PDF Download

GovtVacancy.Net Android App: Download

government vacancy govt job sarkari naukri android application google play store https://play.google.com/store/apps/details?id=xyz.appmaker.juptmh