GATE CS 2026 Set 1 | Question 14
Computer Organization & Architecture › Machine Instructions · MCQ · 1 mark · Answer: B
- Question 14Computer Organization & Architecturemcq1 markMatch 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- A.P–4, Q–3, R–1, S–2
- B.P–4, Q–2, R–1, S–3✓
- C.P–1, Q–4, R–3, S–2
- D.P–2, Q–3, R–1, S–4
Answer: B
Solution
Answer: (B) P–4, Q–2, R–1, S–3 • Immediate: the operand is in the instruction itself, so it is a constant. • Indirect: the instruction holds the address of the address, which is how a pointer is dereferenced. • Base + index: base address of the array plus a variable index register gives a[i]. • Base + fixed displacement: the start of a struct plus a fixed field offset gives r.field. - A.
More GATE PYQ on Machine Instructions
All GATE CS Computer Organization & Architecture PYQ →Attempt GATE CS 2026 Set 1 in real GATE exam mode
Full paper with a timer, the GATE interface and a topic-wise analysis — free.
Create free account →