GATE | GATE-CS-2004 | Question 20

Which of the following addressing modes are suitable for program relocation at run time ?

(i)   Absolute addressing
(ii)  Based addressing
(iii) Relative addressing
(iv)  Indirect addressing

(A) (i) and (iv)
(B) (i) and (ii)
(C) (ii) and (iii)
(D) (i), (ii) and (iv)


Answer: (C)

Explanation: Explanation:

Program relocation at run time transfer complete block to some memory locations. This requires as base address and block should be relatively addressed through this base address .This require both base address and relative address. So( C)  is correct option.

Absolute addressing mode and indirect addressing modes is used for one instruction at one time, not for whole block So both are not suitable for program relocation at run time.

Quiz of this Question

My Personal Notes arrow_drop_up
Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.