Relative mode of addressing is most relevant to writing

2016

Relative mode of addressing is most relevant to writing

  1. A.

    Co-routines

  2. B.

    Position – independent code

  3. C.

    Shareable code

  4. D.

    Interrupt Handlers

Attempted by 334 students.

Show answer & explanation

Correct answer: B

Relative addressing calculates effective addresses by adding an offset to the current program counter (PC). This allows instructions to reference memory locations relative to their own position in code. Consequently, the code can be loaded at any memory address without modification, which is essential for Position Independent Code (PIC).

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Isro