Ace
Learns
Theme
light_mode
dark_mode
light_mode
Light
dark_mode
Dark
monitor
Auto
Open main menu
menu_open
×
Home
History
Geography
Astronomy
Physics
Chemistry
Biology
Agriculture
Sports
Computer Science
Articles
Contact Us
MCQ Categories
Articles
Home
Contact Us
Home
»
Computer Science
»
Language Processors
»
Linkers
Language Processors
unfold_more
double_arrow
Assemblers
double_arrow
Code Generation and Optimization
double_arrow
Compiler Design
double_arrow
Lexical Analysis
double_arrow
Linkers
double_arrow
Loaders
double_arrow
Parsing
quiz
Linkers
Linkers in Program Execution
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
Answer
keyboard_arrow_down
keyboard_arrow_up
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
Answer
keyboard_arrow_down
keyboard_arrow_up
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
Answer
keyboard_arrow_down
keyboard_arrow_up
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
Answer
keyboard_arrow_down
keyboard_arrow_up
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
Answer
keyboard_arrow_down
keyboard_arrow_up
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
Answer
keyboard_arrow_down
keyboard_arrow_up
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
Answer
keyboard_arrow_down
keyboard_arrow_up
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
Answer
keyboard_arrow_down
keyboard_arrow_up
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
Answer
keyboard_arrow_down
keyboard_arrow_up
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
Answer
keyboard_arrow_down
keyboard_arrow_up
B) Symbol tables
Explanation
Quick Links
Computer Science
chevron_right
Cryptography
chevron_right
Python Programming Language
chevron_right
Digital Logic
chevron_right
Programming in C
Astronomy
chevron_right
Solar system
chevron_right
High-Energy Astrophysics
chevron_right
Galaxies
chevron_right
Space Exploration
History
chevron_right
Revolution and Counter-Revolution
chevron_right
Ancient Civilizations
chevron_right
Medieval World History
chevron_right
Enlightenment and Modern ideas
Geography
chevron_right
Geopolitics and Global Issues
chevron_right
Geomorphology
chevron_right
Regional Geography
chevron_right
Climatology