Multiple choice

Code that executes correctly regardless of its load address is called ______ code.

  1. position dependent

  2. position independent

  3. location dependent

  4. none of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Position-independent code (PIC) is machine code that executes correctly regardless of its absolute address in memory, which is essential for shared libraries.