Match the following groups.List-IA). AllocationB). RelocationC). Load...
Allocation: Loader allocates the required memory space for the program to execute properly.
Relocation: It can alter the address of instructions and data during execution.
Loading: It loads the program machine code and makes the program ready to execute.
Linking: It resolves the symbolic references made in the object modules.
View all questions of this test
Match the following groups.List-IA). AllocationB). RelocationC). Load...
Matching the Groups:
Group I:
A) Allocation - Assigns the required memory space for the program
B) Relocation - Alters the address of instructions and data
C) Loading - Makes the program ready to execute by keeping the machine code in main memory
D) Linking - Resolve the symbol references
Group II:
I) Resolve the symbol references
II) Alters the address of instructions and data
III) Makes the program ready to execute by keeping the machine code in main memory
IV) Assigns the required memory space for the program
Matching:
A-4
B-2
C-3
D-1
Explanation:
- Allocation: Allocation refers to the process of assigning the required memory space for the program. It determines the amount of memory needed for the program to execute.
- Relocation: Relocation involves altering the address of instructions and data in a program. This is necessary when the program is loaded into memory at a different location than the one it was originally compiled for.
- Loading: Loading is the process of making the program ready to execute by keeping the machine code in main memory. This involves transferring the program from secondary storage (such as a hard disk) to main memory.
- Linking: Linking is the process of resolving the symbol references in a program. Symbol references are placeholders for memory addresses that are resolved during the linking process to establish the correct addresses for variables, functions, and other symbols used in the program.
The correct matching is:
A) Allocation - Assigns the required memory space for the program (IV)
B) Relocation - Alters the address of instructions and data (II)
C) Loading - Makes the program ready to execute by keeping the machine code in main memory (III)
D) Linking - Resolve the symbol references (I)
Therefore, the correct answer is option 'D' - A-4, B-2, C-3, D-1.