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 I | List II |
|---|---|
| P. Immediate | 1. Element of an array |
| Q. Indirect | 2. Pointer |
| R. Base with index | 3. Element of a record |
| S. Base with offset/displacement | 4. Constant |
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 indexingA[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 accessrec.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.