retagged by
7,380 views
33 votes
33 votes

Which is the most appropriate match for the items in the first column with the items in the second column:$$\begin{array}{|cl|cl|} \hline \text{X.} &\text{Indirect Addressing} &  \text{I.} &\text{Array implementation} \\\hline
\text{Y.} &\text{Indexed Addressing} & \text{II.} &\text{Writing relocatable code}  \\\hline 
\text {Z.} &\text{Base Register Addressing}  & \text{III.} &\text{Passing array as parameter}\\\hline  \end{array}$$

  1. (X, III), (Y, I), (Z, II)
  2. (X, II), (Y, III), (Z, I)
  3. (X, III), (Y, II), (Z, I)
  4. (X, I), (Y, III), (Z, II)
retagged by

2 Answers

Best answer
59 votes
59 votes

(A) is the answer.

Array implementation can use Indexed addressing.

While passing array as parameter we can make use of a pointer (as in (C)) and hence can use Indirect addressing.

Base Register addressing can be used to write relocatable code by changing the content of Base Register.

edited by
2 votes
2 votes

In Indirect Addressing mode, Instruction contain address of Effective Address(M-->EA-->operand), So it is used for pointer implementation.

In Index Addressing mode used for array implementation because we can access array by changing the index value in instruction.

For program relocation best addressing mode is relative addressing mode, but we can implement relocation using Base Addressing mode by changing value in Base

Answer:

Related questions

29 votes
29 votes
3 answers
1
makhdoom ghaya asked Nov 27, 2016
5,825 views
Match the pairs in the following questions:$$\begin{array}{ll|ll}\hline \text{(A)} & \text{Base addressing} & \text{(p)} & \text{Reentranecy} \\\hline \text{(B)} & \text...
27 votes
27 votes
1 answer
2
Kathleen asked Sep 22, 2014
6,749 views
Match each of the high level language statements given on the left hand side with the most natural addressing mode from those listed on the right hand side.$$\begin{array...
9 votes
9 votes
2 answers
4
sh!va asked May 7, 2017
2,964 views
The most appropriate matching for the following pairs :$\begin{array}{clcl} \text{X.} & \text{Indirect Addressing} & \text{i.} & \text{Loop} \\ \text{Y.} & \text{Immedi...