Which is the most appropriate match for the items in the first column with the items in the second column?
(X) Indirect Addressing (I) Array implementation
(Y) Indexed Addressing (II) Writing re-locatable code
(Z) Base Register Addressing (III) Passing array as parameter
-
(X, III) (Y, I) (Z, II)
-
(X, II) (Y, III) (Z, I)
-
(X, III) (Y, II) (Z, I)
-
(X, I) (Y, III) (Z, II)
A
Correct answer
Explanation
Indexed addressing is used for array implementation where each element has indexes. Base register is used to re-locatable code, where starts from base address & then all local addresses as added to base address. Indirect addressing is done when array is passed as parameter only name is passed.