Machine-translated by Google. Questions are authored in English.
Top

Addressing Modes Questions and Answers

1.

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

Exam Year(s)

GATE CS - 2026,

Answer: B

The correct matching is P-4, Q-2, R-1, S-3.

  • Immediate: the operand is in the instruction itself, which is how a constant is supplied (4).
  • Indirect: the instruction names a location that holds the address of the operand, which is how a pointer is followed (2).
  • Base with index: a base register holds the start of an array and an index register selects the element, so the address varies at run time (1).
  • Base with offset/displacement: a base register holds the start of a record and a fixed offset in the instruction selects the field (3).

Options that pair indirect addressing with a record element, or immediate addressing with an array, mix up the fixed offset of a record field with the variable index of an array element.

Please log in or register to report this question.

2.

Which one of the following is not a most common use of displacement addressing ?

Exam Year(s)

MH SET - 2020, SET Exam - 2020,

Answer: D

The one that is not a common use of displacement addressing is Register-indirect addressing.

Displacement addressing computes the effective address as \(EA = A + (R)\): an address field plus the contents of a register. Stallings lists its three most common uses as relative addressing (R is the program counter), base-register addressing (R holds a base address) and indexing (A is a base, R holds an index).

Register-indirect addressing uses only the register's contents, \(EA = (R)\), with no displacement, so it is a separate mode, not an application of displacement addressing.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: Addressing Modes Questions and Answers || Addressing Modes MCQ Questions and Answers || Addressing Modes GK Questions and Answers || Addressing Modes GK MCQ Questions || Addressing Modes Multiple Choice Questions and Answers || Addressing Modes GK || GK on Addressing Modes || Computer Organization and Architecture Questions and Answers || Computer Organization and Architecture MCQ Questions and Answers || Computer Organization and Architecture GK Questions and Answers || GK on Computer Organization and Architecture