Learn and practice Aptitude questions and answers with explanation for interview, competitive exam (Pariksha Corner )

Wednesday, January 22, 2020

A linker needs 4 modules of lengths 200. 800. 600 and 500

A linker needs 4 modules of lengths 200. 800. 600 and 500 words. If they are loaded in that order, what are the relocation constants ?
A0. 200. 500. 800
B0. 200. 1000. 1600
C200. 500, 600. 800
D200. 700. 1300, 2100

Answer :  0, 200, 1000, 1600

Explanation:

In general the linker keeps the sum of the lengths of all the modules it has already processed, this sum is the relocation constant for the next module.

So, in this case the relocation constants are: 0, 200, (200+800)=1000, (1000+600)=1600.

Nithin K
answered Dec 7 '2016 at 20:14

All Comments

Post your answers here:

Post

Post your comments here:

Post

Categories