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.

3.

In which addressing mode, the effective address of the operand is generated by adding a constant value to the contents of register ?

Exam Year(s)

UGC NET - 2012,

Answer: D

In indexed addressing the effective address is formed by adding a constant (the displacement or base address in the instruction) to the contents of an index register. This is the Index mode, and it is useful for arrays.

In absolute (direct) addressing the address is given in the instruction itself, indirect addressing uses the address of a location that holds the address of the operand, and immediate addressing places the operand itself in the instruction. None of these adds a constant to a register to find the address.

Please log in or register to report this question.

4.

Identify the addressing modes of below instructions and match them :

(a) ADI(1) Immediate addressing
(b) STA(2) Direct addressing
(c) CMA(3) Implied addressing
(d) SUB(4) Register addressing

Exam Year(s)

UGC NET - 2012,

Answer: A

In the 8085 instruction set, ADI adds an immediate byte to the accumulator, so it uses immediate addressing (1). STA stores the accumulator at a given memory address, which is direct addressing (2). CMA complements the accumulator and names no operand, so it uses implied addressing (3), and SUB subtracts a register from the accumulator, which is register addressing (4). So the match is a-1, b-2, c-3, d-4, option (A). The other options give STA or CMA the wrong mode.

Please log in or register to report this question.

5.

Match the following :

List - IList - II
a. Indexed Addressingi. is not used when an operand is moved from memory into a register or from a register to memory.
b. Direct Addressingii. Memory address is computed by adding up two registers plus an (optional) offset.
c. Register Addressingiii. Addressing memory by giving a register plus a content offset.
d. BaseIndexed Addressingiv. can only be used to access global variables whose address is known at compile time.

Codes : a b c d

Exam Year(s)

UGC NET - 2013,

Answer: C

The match is a-iii, b-iv, c-i, d-ii. Indexed addressing gives a memory address by a register plus a content offset (iii). Direct addressing can only be used for global variables whose address is known at compile time (iv). Register addressing is not used when an operand moves between memory and a register (i). Base-indexed addressing computes the address by adding two registers plus an optional offset (ii).

The other codes interchange the descriptions of indexed and base-indexed, or of direct and register addressing.

Please log in or register to report this question.

6.

Which one of the following is not an addressing mode ?

Exam Year(s)

UGC NET - 2013,

Answer: C

Relative indexed is not an addressing mode. Relative addressing and indexed addressing are two separate modes, and there is no combined mode of this name among the standard ones. The answer is (C).

Register indirect, autoincrement and immediate operand are all addressing modes: the first takes the address from a register, the second uses a register as a pointer and increments it, and the third carries the operand within the instruction.

Please log in or register to report this question.

7.

The instruction: MOV CL, [BX] [DI] + 8 represents the _____ addressing mode.

Exam Year(s)

UGC NET - 2013,

Answer: B

The instruction MOV CL, [BX][DI] + 8 uses the based indexed addressing mode, as the key gives. The effective address is the sum of a base register (BX), an index register (DI) and a displacement of 8, so it combines a base and an index.

Based relative uses a base register with a displacement only, indexed relative uses an index register with a displacement only, and register indexed is not an 8086 addressing mode. Since both BX and DI appear, the mode is based indexed.

Please log in or register to report this question.

8.

The advantage of _______ is that it can reference memory without paying the price of having a full memory address in the instruction.

Exam Year(s)

UGC NET - 2014,

Answer: D

Register indirect addressing references memory without a full memory address in the instruction.

In register indirect addressing the instruction names a register that holds the memory address, so the instruction needs only a few bits for the register number.

Direct addressing carries the full address, indexed addressing adds an index to a base address given in the instruction and register addressing refers to the register itself and not memory.

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