← All topics
Quiz: Instructions and Addressing Modes: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. In immediate addressing, where is the operand?
- Q2. In the simulation, what is the operand for indirect addressing with field 100?
- Q3. A 32-bit instruction has two 6-bit register fields and a 12-bit immediate. How many opcodes are possible?
- Q4. Which addressing mode is most natural for accessing arr[i]?
- Q5. Which statement about RISC is true?
- Q6. How many memory accesses are needed to get the operand (not counting the instruction fetch) in indirect addressing?
- Q7. A machine evaluates X = A + B using PUSH A, PUSH B, ADD, POP X. What kind of instruction format is ADD here?
- Q8. With a 6-bit opcode field, how many different operations can be encoded?
- Q9. What does this print? (code)
- Q10. Which addressing mode is used for branches in position-independent code?