MCQ On Addressing Modes
Q1. In the case of, Zero-address instruction method the operands are stored in _____.
- Registers
- Accumulators
- Push down stack
- Cache
Answer: c, Push down stack
Solution: In this case, the operands are implicitly loaded onto the ALU.
Q2. The addressing mode which makes use of in-direction pointers is ______.
- Indirect addressing mode
- Index addressing mode
- Relative addressing mode
- Offset addressing mode
Answer: a, Indirect addressing mode
Solution: In this addressing mode, the value of the register serves as another memory location and hence we use pointers to get the data.
Q3. The addressing mode/s, which uses the PC instead of a general purpose register is ______.
- Indexed with offset
- Relative
- Direct
- Both Indexed with offset and direct
Answer: b, Relative
Solution:
- The effective address of the operand is obtained by adding a displacement (offset) to the Program Counter (PC).
- It is commonly used for branch instructions.
- Uses a base register (like a general-purpose register) plus an offset. It does not use the PC.
- The address of the operand is given directly in the instruction. No PC involvement.
Q4. When we use auto increment or auto decrements, which of the following is/are true?.
- In both, the address is used to retrieve the operand and then the address gets altered
- In auto increment, the operand is retrieved first and then the address altered
- Both of them can be used on general purpose registers as well as memory locations
- 1, 2, 3
- 2
- 1, 3
- 2, 3
Answer: d, 2, 3
Solution: In the case of, auto increment the increment is done afterward and in auto decrement the decrement is done first.
Note: In auto-increment, the operand is retrieved first, and then the address is altered. In auto-decrement, the address is altered first, and then the operand is retrieved using the new address.
Q5. _____ addressing mode is most suitable to change the normal sequence of execution of instructions..
- Relative
- Indirect
- Index with Offset
- Immediate
Answer: a, Relative
Solution: The relative addressing mode is used for this since it directly updates the PC.
Q6. The addressing mode, where you directly specify the operand value is _______.
- Immediate
- Direct
- Definite
- Relative
Answer: a, Immediate
Solution: Immediate addressing mode directly specifies the operand value.
Q7. The instruction, Add #45,R1 does _______.
- Adds the value of 45 to the address of R1 and stores 45 in that address
- Adds 45 to the value of R1 and stores it in R1
- Finds the memory location 45 and adds that content to that of R1
- None of the mentioned
Answer: b, Adds 45 to the value of R1 and stores it in R1
Solution: The instruction is using immediate addressing mode hence the value is stored in the location 45 is added.
Q8. Add #45, when this instruction is executed the following happen/s _______.
- The processor raises an error and requests for one more operand
- The value stored in memory location 45 is retrieved and one more operand is requested
- The value 45 gets added to the value on the stack and is pushed onto the stack
- None of the mentioned
Answer: b, The value stored in memory location 45 is retrieved and one more operand is requested
Solution: The value stored in memory location 45 is retrieved and one more operand is requested.
Q9. In the following indexed addressing mode instruction, MOV 5(R1), LOC the effective address is ______.
- EA = 5+R1
- EA = R1
- EA = [R1]
- EA = 5+[R1]
Answer: d, EA = 5+[R1]
Solution: This instruction is in Base with offset addressing mode.
Q10. The effective address of the following instruction is MUL 5(R1,R2)..
- 5+R1+R2
- 5+(R1*R2)
- 5+[R1]+[R2]
- 5*([R1]+[R2])
Answer: c, 5+[R1]+[R2]
Solution: The addressing mode used is base with offset and index.
Q11. Which of the following addressing modes are suitable for program relocation at run time?.
- Absolute addressing
- Base addressing
- Relative addressing
- Indirect addressing
- 1 and 4
- 1 and 2
- 2 and 3
- 1, 2 and 4
Answer: c, 2 and 3
Solution:
- Absolute addressing
- Base addressing
- Relative addressing
- Indirect addressing
Q12. What is the most appropriate match for the items in the first column with the items in the second column-.
| COLUMN 1 | COLUMN 2 |
| X: Indirect addressing | 1. Array implementation |
| Y: Indexed addressing | 2. Writing relocatable code |
| Z: Base register addressing | 3. Passing array as parameter |
- X-3, Y-1, Z-2
- X-2, Y-3, Z-1
- X-3, Y-2, Z-1
- X-1, Y-3, Z-2
Answer: a, X-3, Y-1, Z-2
Solution:
| COLUMN 1 | COLUMN 2 |
| X: Indirect addressing | 1. Array implementation |
| Y: Indexed addressing | 2. Writing relocatable code |
| Z: Base register addressing | 3. Passing array as parameter |
Q13. Q3: The immediate addressing mode can be used for.
- Loading internal registers with initial values
- Perform arithmetic or logical operation on data contained in instructions
- Only 1
- Only 2
- Both 1 and 2
- Immediate mode refers to data in cache
Answer: c, Both 1 and 2
Solution:
- Loading internal registers with initial values
- Perform arithmetic or logical operation on data contained in instructions
Q14. The most appropriate matching for the following pairs:.
| X. Indirect Addressing | i. Loop |
| Y. Immediate Addressing | ii. Pointer |
| Z. Auto Decrement Addressing | iii. Constants |
- X-iii, Y-ii, Z-i
- X-ii, Y-iii, Z-i
- X-iii, Y-i, Z-ii
- X-ii, Y-i, Z-iii
Answer: b, X-ii, Y-iii, Z-i
Solution:
Q15. Zero address instruction are designed with implied addressing mode..
- TRUE
- FALSE
- Can be true or false
- Can not say
Answer: a, TRUE
Solution: Zero-address instructions are designed with implied addressing mode. Example: stack based operations.
Q16. An offset is determined by adding any combination of ________ address elements.
- 3
- 4
- 5
- 6
Answer: a, 3
Solution: Effective address or Offset is determined by adding any combination of three address elements: displacement, base and index.
Q17. In ________ the operand is specified in the instruction itself.
- Immediate addressing
- Register mode
- Implied addressing
- Register Indirect
Answer: c, Implied addressing
Solution: In implied addressing the operand is specified in the instruction itself.
Q18. In which mode the operand is placed in one of 8 bit or 16 bit general purpose registers?.
- Immediate addressing
- Register mode
- Implied addressing
- Register Indirect
Answer: b, Register mode
Solution: In register addressing the operand is placed in one of 8 bit or 16 bit general purpose registers.
Q19. Which of the following modes is the most relevant addressing mode to write position independent code?.
- Direct mode
- Indirect mode
- Relative mode
- Indexed mode
Answer: c, Relative mode
Q20. Which one of the following is used to read the control words sequentially from the control memory?.
- Microprogram address register
- Microprogram counter
- Control memory address register
- Program counter
Answer: a, Microprogram address register
Q21. Which of the following is NOT a valid addressing mode?.
- Register addressing
- Memory addressing
- Cache addressing
- Immediate addressing
Answer: c, Cache addressing
Q22. Which of the following stores operand during execution and result of operation after execution?.
- General purpose registers
- Stack register
- Flag register
- Accumulator
Answer: d, Accumulator
Q23. In 8085 microprocessor CMA, RLC, RRC instructions are examples of which addressing mode?.
- Implicit addressing mode
- Direct addressing mode
- Indirect addressing mode
- Immediate addressing mode
Answer: a, Implicit addressing mode
Q24. What is the addressing mode used in the instruction PUSH B?.
- Direct
- Register
- Register indirect
- Immediate
Answer: c, Register indirect
Q25. Relative mode of addressing is most relevant to writing.
- Co-routines
- Position-independent code
- Sharable code
- Interrupt Handlers
Answer: b, Position-independent code
Q26. Addressing mode in which the address field of instruction specifies a register in the CPU, whose contents given the address of the operand in memory is called.......
- indirect addressing mode
- relative addressing mode
- register addressing mode
- register indirect addressing mode
Answer: d, register indirect addressing mode