Skip to main content

GATE CSE 2026CO & Architecture › Machine Instructions & Addressing ModesVerified

GATE CSE 2026 PYQ: Match each addressing mode in List I \textbf{List I} List I with a data element or an element of a data…

Match each addressing mode in List I\textbf{List I} with a data element or an element of a data structure (in a high-level language) in List II\textbf{List II}:
List IList IIP. Immediate1. Element of an arrayQ. Indirect2. PointerR. Base with index3. Element of a recordS. Base with offset/displacement4. Constant \begin{array}{|l|l|} \hline {\textbf{List I}} & {\textbf{List II}} \\ \hline \hline P.\ \text{Immediate} & 1.\ \text{Element of an array} \\ \hline Q.\ \text{Indirect} & 2.\ \text{Pointer} \\ \hline R.\ \text{Base with index} & 3.\ \text{Element of a record} \\ \hline S.\ \text{Base with offset/displacement} & 4.\ \text{Constant} \\ \hline \end{array}

  1. A
    P−4,Q−3,R−1, S−2\mathrm{P}-4, \mathrm{Q}-3, \mathrm{R}-1, \mathrm{~S}-2
  2. B
    P−4,Q−2,R−1, S−3\mathrm{P}-4, \mathrm{Q}-2, \mathrm{R}-1, \mathrm{~S}-3
    Correct answer
  3. C
    P−1,Q−4,R−3, S−2\mathrm{P}-1, \mathrm{Q}-4, \mathrm{R}-3, \mathrm{~S}-2
  4. D
    P−2,Q−3,R−1, S−4\mathrm{P}-2, \mathrm{Q}-3, \mathrm{R}-1, \mathrm{~S}-4

Answer

(B) P − 4 , Q − 2 , R − 1 , S − 3 \mathrm{P}-4, \mathrm{Q}-2, \mathrm{R}-1, \mathrm{~S}-3 P − 4 , Q − 2 , R − 1 , S − 3

Approach

Reason about what each addressing mode stores in the instruction and how the effective address is formed, then map each mode to the high-level construct that behaves the same way: a literal embedded in code (constant), a stored address that must be dereferenced (pointer), a base plus a variable index (array subscripting), and a base plus a fixed displacement (record field / struct offset).

The correct matching is Immediate-Constant, Indirect-Pointer, Base with index-Element of an array, Base with offset-Element of a record, i.e. P-4, Q-2, R-1, S-3, which is option B. This agrees with the dominant community answer.

Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.