Science & Tech· Computers

What is the main purpose of a linker?

  1. aTo detect errors and bugs present in the program
  2. bTo convert the program code written in one language to another language
  3. cTo arrange the object code of all the modules generated by the language translator into a single program
  4. dTo edit information related to audio components of a multimedia application
Show answer and explanation

Answer: (c) To arrange the object code of all the modules generated by the language translator into a single program

A linker takes the separate object-code modules produced by the compiler or assembler, along with library routines, resolves the references between them, and combines them into a single executable program. Translating code from one language to another is the work of a compiler, interpreter or assembler, and finding bugs is done by a debugger.

Source: UPSC CISF 2025 · Q91

Search YouTube ↗

Practise Science & Tech with a free drill

More Science & Tech questions

All Science & Tech questions →

Keep going