Consider the following : \(\begin{array}{ll}\text { List I } & \text { List II…
2022
Consider the following :
\(\begin{array}{ll}\text { List I } & \text { List II } \\ \text { (A) Activation record } & \text { (I) Linking Loader } \\ \text { (B) Location counter } & \text { (II) Garbage Collection } \\ \text { (C) Reference count } & \text { (III) Subroutine Call } \\ \text { (D) Address relocation } & \text { (IV) Assembler }\end{array}\)
Which of the following is correct matching ?
- A.
(A)-(III),(B)-(IV), (C) -(II), (D)-(I)
- B.
(A) -(IV), (B)−(III),(C)–(I),(D)−(II)
- C.
(A)-(IV), (B)−(III),(C)−(II),(D)−(I)
- D.
(A)-(II), (B)−(III),(C)−(I),(D)−(IV)
Attempted by 304 students.
Show answer & explanation
Correct answer: A
Correct matching is:
Activation record → Subroutine Call. An activation record (stack frame) is created for each subroutine call to store return address, parameters, and local variables.
Location counter → Assembler. The assembler uses a location counter to assign addresses to program statements during assembly.
Reference count → Garbage Collection. Reference counting is a garbage-collection technique that reclaims objects when their reference count drops to zero.
Address relocation → Linking Loader. Linking loaders perform address relocation to adjust addresses when combining modules or loading programs at different memory locations.
A video solution is available for this question — log in and enroll to watch it.