Question

Match each addressing mode in List I with a data element or an element of a data structure (in a high-level language) in List II:

List IList II
P. Immediate1. Element of an array
Q. Indirect2. Pointer
R. Base with index3. Element of a record
S. Base with offset/displacement4. Constant
Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2026 answer key

Solution

Map each hardware addressing mode to the high-level language construct it directly supports.

  • P. Immediate (4. Constant): The operand value is embedded directly in the instruction as a literal constant.
  • Q. Indirect (2. Pointer): The register or memory operand holds the effective address of the target data, implementing pointer dereferencing.
  • R. Base with index (1. Element of an array): Adds a base address register and an index register (Base + Index), matching array indexing A[i].
  • S. Base with offset/displacement (3. Element of a record): Adds a constant compile-time field offset to a base pointer (Base + Offset), matching struct/record member access rec.field.
Final answer

Option (B)

Common trap

Swapping R (Base with index) and S (Base with offset/displacement).

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2026 Computer Science and Information Technology - Session 1 (CS1)
Question
14 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.