Skip to content
Official PYQ · 2000

GATE CS 2000 Q1.10 — Machine Instructions and Addressing Modes

Explain with AI

The most appropriate matching for the following pairsX: Indirect addressing1: Loops Y: Immediate addressing 2: PointersZ: Auto decrement addressing 3: Constants \begin{array}{ll} \text{X: Indirect addressing} & \text{1: Loops } \\ \text{Y: Immediate addressing } & \text{2: Pointers} \\ \text{Z: Auto decrement addressing } & \text{3: Constants } \\ \end{array} is

Choose one option
View worked solution

Answer: C

We can determine the correct matching by analyzing the primary use cases of each addressing mode:

  • X. Indirect addressing → 2. Pointers: In indirect addressing, the instruction specifies a register or memory location that contains the address of the operand (rather than the operand itself). This is the exact definition and mechanism of a pointer in high-level programming languages.
  • Y. Immediate addressing → 3. Constants: In immediate addressing, the actual operand value is present directly within the instruction (e.g., ADD R1, #5). This is used to load or perform operations with fixed constants.
  • Z. Auto decrement addressing → 1. Loops: Auto-decrement (and auto-increment) addressing modes automatically update the index register or pointer after/before each access. This is highly useful for stepping through arrays or managing counters inside loops.

Thus, the correct matching is: X→2,Y→3,Z→1\text{X} \rightarrow 2, \quad \text{Y} \rightarrow 3, \quad \text{Z} \rightarrow 1 This corresponds to Option C.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Machine Instructions and Addressing Modes questions