All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · September 2022

Match List I with List II. List I: (A) Activation record, (B) Location counter, (C) Reference count, (D) Address relocation. List II: (I) Linker/loader, (II) Garbage collection, (III) Subroutine call, (IV) Assembler.

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. (A)-(IV), (B)-(III), (C)-(II), (D)-(I)

Explanation

An activation record is built for each subroutine call; the location counter is maintained by the assembler; reference counting is a garbage-collection technique; address relocation is done by the linker/loader.

Note on the official key: the official key says option A. Official/PW key is C. Activation records are created by subroutine calls and the location counter is maintained by the assembler, which is option A.

More Theory of Computation and Compilers questions