Which of the following are the principal tasks of the linker? I. Resolve…
2016
Which of the following are the principal tasks of the linker?
I. Resolve external references among separately compiled program units
II. Translate assembly language to machine code
III. Relocate code and data relative to the beginning of the program
IV. Enforce access-control restrictions on system libraries
- A.
I and II
- B.
I and III
- C.
II and III
- D.
I and IV
Attempted by 123 students.
Show answer & explanation
Correct answer: B
The linker resolves external references between separately compiled units and relocates code relative to the program's start. Statement II describes an assembler, while IV involves OS security mechanisms.
A video solution is available for this question — log in and enroll to watch it.