← 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]])
- A.200 300
- B.300 42
- C.42 300
- 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 →