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

  1. A.

    I and II

  2. B.

    I and III

  3. C.

    II and III

  4. 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.

Explore the full course: Mppsc Assistant Professor