🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Instructions and Addressing Modes: all 10 questions

Quiz: Instructions and Addressing Modes · Question 9 of 10

What does this print? (code)

What does this print?

memory = {200: 300, 300: 42, 400: 55}
R = {"R1": 200}
print(memory[R["R1"]], memory[memory[200]])
  1. A.200 300
  2. B.300 42
  3. C.42 300
  4. D.300 55
Answer & explanation

Correct answer: 300 42

Register indirect: M[R1] = M[200] = 300. Indirect: M[M[200]] = M[300] = 42.

Can you get the rest right without peeking?

Take the timed Quiz: Instructions and Addressing Modes quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →