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

6. Which of the following commands is commonly used in the linking phase of software development?

  • A) gcc
  • B) make
  • C) ld
  • D) javac
C) ld Explanation

7. What does a linker resolve during the linking process?

  • A) Logical errors in the code
  • B) External references and symbols
  • C) Syntax errors in the code
  • D) Hardware-related issues
B) External references and symbols Explanation

8. Which origin specifies the actual physical memory address during the linking process?

  • A) Translated Origin
  • B) Linked Origin
  • C) Load Origin
  • D) Relative Origin
C) Load Origin Explanation

9. Which of the following is an example of a linkage editor used in mainframe environments?

  • A) MS-DOS Editor
  • B) GNU Make
  • C) z/OS Linkage Editor (IEWL)
  • D) Visual Studio Code
C) z/OS Linkage Editor (IEWL) Explanation

10. When linking object files from different languages, which part of the object files helps the linker understand the function prototypes and data structures?

  • A) Source code comments
  • B) Symbol tables
  • C) Relocation tables
  • D) Metadata headers
B) Symbol tables Explanation