🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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 →
  1. Q1. In immediate addressing, where is the operand?
  2. Q2. In the simulation, what is the operand for indirect addressing with field 100?
  3. Q3. A 32-bit instruction has two 6-bit register fields and a 12-bit immediate. How many opcodes are possible?
  4. Q4. Which addressing mode is most natural for accessing arr[i]?
  5. Q5. Which statement about RISC is true?
  6. Q6. How many memory accesses are needed to get the operand (not counting the instruction fetch) in indirect addressing?
  7. Q7. A machine evaluates X = A + B using PUSH A, PUSH B, ADD, POP X. What kind of instruction format is ADD here?
  8. Q8. With a 6-bit opcode field, how many different operations can be encoded?
  9. Q9. What does this print? (code)
  10. Q10. Which addressing mode is used for branches in position-independent code?