1. What is the primary role of a linker in computing?

  • A) Generating object files
  • B) Converting source code into object code
  • C) Combining multiple object files into a single executable or library file
  • D) Optimizing program performance
C) Combining multiple object files into a single executable or library file Explanation

2. Which type of linking occurs before program execution?

  • A) Static linking
  • B) Dynamic linking
  • C) Shared linking
  • D) None of these
A) Static linking Explanation

3. Which type of file is essential for dynamic linking?

  • A) Preprocessor directives
  • B) Shared libraries
  • C) Source code files
  • D) Precompiled object files
B) Shared libraries Explanation

4. What does “DLL Hell” refer to in computing?

  • A) Managing dynamic-link libraries (DLLs)
  • B) Memory management problems
  • C) Compatibility issues with DLL versions
  • D) Programming with hardware libraries
C) Compatibility issues with DLL versions Explanation

5. What is the role of the linker relaxation pass in the overall linking process?

  • A) To increase the size of the executable
  • B) To assign final addresses to objects
  • C) To perform runtime optimizations
  • D) To reassign addresses and allow potential relaxations based on object layout
D) To reassign addresses and allow potential relaxations based on object layout Explanation