Addressing Modes · Computer Organization and Architecture
12 questions · asked in 11 of 27 years (2000–2026)
MCQ 11 · NAT 11-mark 10 · 2-mark 2
2000Questions per year2026
Questions 6–10 of 12
Which of the following is/are true of the auto-increment addressing mode?
I. It is useful in creating self-relocating code
II. If it is included in an Instruction Set Architecture, then an additional ALU is required for effective address calculation
III. The amount of increment depends on the size of the data item accessed
I. It is useful in creating self-relocating code
II. If it is included in an Instruction Set Architecture, then an additional ALU is required for effective address calculation
III. The amount of increment depends on the size of the data item accessed
Answer: (C)
In auto-increment mode, the register holds the address of the operand. The operand is fetched and then the register is increased.
I is false. Self-relocating code can be loaded at any address, and it works from a base address. Auto-increment only steps through data such as an array, so it does not help here.
II is false. The effective address is simply the register contents, and the increment can be done by the same ALU after the fetch. An extra ALU may speed up a pipeline, but it is not required.
III is true. After the access, the register must point to the next data item. So it is increased by the size of the item: 1 for a byte, 2 for a 16-bit word, 4 for a 32-bit word.
Only III is true.
Answer: (C)
I is false. Self-relocating code can be loaded at any address, and it works from a base address. Auto-increment only steps through data such as an array, so it does not help here.
II is false. The effective address is simply the register contents, and the increment can be done by the same ALU after the fetch. An extra ALU may speed up a pipeline, but it is not required.
III is true. After the access, the register must point to the next data item. So it is increased by the size of the item: 1 for a byte, 2 for a 16-bit word, 4 for a 32-bit word.
Only III is true.
Answer: (C)
Which of the following statements about relative addressing mode is FALSE?
Answer: (D)
(A) True. The instruction holds a small offset from the current address instead of a full absolute address, so the instruction is shorter.
(B) True. Keep the base address of the array in the displacement and the index in a register (base relative mode). Then the same instruction reaches every array element.
(C) True. When the code or data moves, only the base address changes. The instructions stay the same.
(D) False. The absolute address has to be worked out from the relative one by an addition. So relative addressing cannot be faster than absolute addressing. With special hardware it can match absolute addressing, but not beat it.
Answer: (D)
(B) True. Keep the base address of the array in the displacement and the index in a register (base relative mode). Then the same instruction reaches every array element.
(C) True. When the code or data moves, only the base address changes. The instructions stay the same.
(D) False. The absolute address has to be worked out from the relative one by an addition. So relative addressing cannot be faster than absolute addressing. With special hardware it can match absolute addressing, but not beat it.
Answer: (D)
Match each of the high level language statements given on the left hand side with the most natural addressing modes from those listed on the right hand side.
1 A[I] = B[J]; a Indirect addressing
2 while (*A++); b Indexed addressing
3 int temp = *x; c Autoincrement Answer: (C)
Match each statement with the way its operand is reached:
1. : the element of B is found from the base address of B plus the index j, so this is indexed addressing (b).
2. : the pointer A is used to read the value and is then moved to the next item, so this is auto-increment addressing (c).
3. : x holds the address of the value, so the value is read through x. This is indirect addressing (a).
So the pairs are (1, b), (2, c), (3, a).
Answer: (C)
1. : the element of B is found from the base address of B plus the index j, so this is indexed addressing (b).
2. : the pointer A is used to read the value and is then moved to the next item, so this is auto-increment addressing (c).
3. : x holds the address of the value, so the value is read through x. This is indirect addressing (a).
So the pairs are (1, b), (2, c), (3, a).
Answer: (C)
Which of the following addressing modes are suitable for program relocation at run time?
(i) Absolute addressing
(ii) Based addressing
(iii) Relative addressing
(iv) Indirect addressing
(i) Absolute addressing
(ii) Based addressing
(iii) Relative addressing
(iv) Indirect addressing
Answer: (C)
A program can be moved (relocated) at run time only if its instructions do not contain fixed memory addresses.
(i) Absolute: the instruction holds the actual address, so it must be rewritten when the program moves. Not suitable.
(ii) Based: . After a move only the base register is changed; the code stays the same. Suitable.
(iii) Relative: . The target stays at the same distance from the instruction wherever the program is loaded. Suitable.
(iv) Indirect: the instruction points to a memory word that holds the operand's absolute address. That stored address is not changed by the move, so it would have to be fixed. Not suitable.
So only (ii) and (iii) work.
Answer: (C)
(i) Absolute: the instruction holds the actual address, so it must be rewritten when the program moves. Not suitable.
(ii) Based: . After a move only the base register is changed; the code stays the same. Suitable.
(iii) Relative: . The target stays at the same distance from the instruction wherever the program is loaded. Suitable.
(iv) Indirect: the instruction points to a memory word that holds the operand's absolute address. That stored address is not changed by the move, so it would have to be fixed. Not suitable.
So only (ii) and (iii) work.
Answer: (C)
In the absolute addressing mode:
Answer: (B)
(B) is the answer. In absolute addressing mode, the instruction gives the address of the operand.
Option (A): the operand is inside the instruction this is immediate addressing.
Option (C): the register that holds the address is named in the instruction this is register indirect addressing.
Option (D): the location of the operand is implicit this is implicit addressing.
Answer: (B)
Keep practising