🎙 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 10 of 10

Which addressing mode is used for branches in position-independent code?

Which addressing mode is used for branches in position-independent code?

  1. A.Immediate
  2. B.Direct
  3. C.PC-relative
  4. D.Register
Answer & explanation

Correct answer: PC-relative

The target is PC + offset, so the code works wherever it is loaded in memory.

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 →