What is the primary role of the linker in system software?

2023

What is the primary role of the linker in system software?

  1. A.

    Translates source code to machine code

  2. B.

    Combines object files into a single executable

  3. C.

    Allocates memory to processes

  4. D.

    Converts machine code to binary

Attempted by 460 students.

Show answer & explanation

Correct answer: B

The correct answer is Option B: Combines object files into a single executable. A linker is a system program that takes one or more object files generated by a compiler or assembler and combines them into a single executable file, resolving external references and combining libraries in the process.

Explore the full course: Btsc Lab Assistant