retagged by
6,749 views
27 votes
27 votes

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}{clcl} \text{(1)} &\text{$A[I] = B[J]$} & \qquad\text{(a)} &\text{Indirect addressing} \\ 
\text{(2)} &\text{while $(^*A\text{++});$} & \qquad\text{(b)} & \text{Indexed addressing} \\   
\text{(3)} & \text{int temp $= ^*x$} & \qquad\text{(c)} &\text{Auto increment}  \\ \end{array}$$

  1. $(1, c), (2, b), (3, a)$
  2. $(1, c), (2, c), (3, b)$
  3. $(1, b), (2, c), (3, a)$
  4. $(1, a), (2, b), (3, c)$
retagged by

1 Answer

Best answer
38 votes
38 votes

$C$ is the answer.

  • $A[i] = B[j]$;     Indexed addressing
  • while $(^*A++)$;      Auto increment
  • temp $=^*x$;       Indirect addressing
edited by
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...
33 votes
33 votes
2 answers
2
Kathleen asked Sep 14, 2014
7,380 views
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 Addres...
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...