Upload
sunita-aher
View
55
Download
0
Embed Size (px)
Citation preview
System Programming Mrs. Sunita M Dol, CSE Dept
1
Chapter 6 Loaders
Multiple Choice Questions
1. Which of the following is not the function of Loader?
a) Translation b) Relocation
c) Allocation d) Linking
2. Which of the following type of loader have assembler in memory?
a) Absolute b) Compile & Go
c) Relocation Loader d) Direct Linking Loader
3. In Absolute Loader, allocation is done by
a) Programmer b) Linker
c) Assembler d) Loader
4. In Absolute Loader, relocation is done by
a)Programmer b)Linker
c)Assembler d)Loader
5. In Absolute Loader, linking is done by
a)Programmer b)Linker
c)Assembler d)Loader
6. In Absolute Loader, loading is done by
a)Programmer b)Linker
c)Assembler d)Loader
7. Which type of loader consist of Transfer Vector
a) Absolute b)Compile & Go
c) Relocation Loader d)Direct Linking Loader
System Programming Mrs. Sunita M Dol, CSE Dept
2
8. The output of Relocating Assembler using BSS scheme is
a)Object Program b)Information about all Other Program it References
c) Both a & b d)Only a
9. In which type of loader Relocation Bits are used
a)Absolute b)Compile & Go
c) Relocation Loader d)Direct Linking Loader
10.In Relocating Loader, ______ are used to solve the problem of relocation
a) Transfer Vector b) Program Length Information
c) Relocation Bit d) None Of The Above
11.______ is used to solve the problem of linking in Relocating Loader
a) Transfer Vector b) Program Length Information
c) Relocation Bit d) None Of The Above
12.______is used to solve problem of allocation in Relocating Loader
a) Transfer Vector b) Program Length Information
c) Relocation Bit d) None of The Above
13. In Direct Linking Loader, which of the following information must be given by the
loader?
a) The length of the segment & machine code translation of source program &
relative address assigned
b) The list of the symbols in segment that may be referenced by the other
segment & their relative location within the segment
c) List of Symbols not defined in the segment but reference in the segment &
information as to where address constants are located in the segment
d) All of the Above
System Programming Mrs. Sunita M Dol, CSE Dept
3
14 .Which of the following Pseudo code is used to indicate to the Assembler which
General Register to use as a Base
a) BALR b) USING
c) BR d) None
15. Which of the Following Instruction is used to load a register with next address and
branch to the address in second field?
a) BALR b) USING
c) BR d) None
16. In Direct Linking Loader, the Assembler produces
a) ESD & TXT cards b) RLD card
c) END d) All of the Above
17. ESD cards contain information about
a) All symbols that are defined in this program that may be reference elsewhere
& all symbols reference in this program but defined elsewhere.
b) Actual Object code translated version of source program
c) Those Location in the program whose content depend on the address at which
program is placed
d) End of Object Deck
18. RLD cards contain information about
a) All symbols that are defined in this program that may be reference elsewhere
& all symbols reference in this program but defined elsewhere.
b) Actual Object code translated version of source program
c) Those Location in the program whose content depend on the address at which
program is placed
d) End of Object Deck
System Programming Mrs. Sunita M Dol, CSE Dept
4
19. END cards indicates information about
a) All symbols that are defined in this program that may be reference elsewhere
& all symbols reference in this program but defined elsewhere.
b) Actual Object code translated version of source program
c) Those Location In the Program Whose Content depend on the address at
which program is placed
d) End of Object Deck
20. TXT cards contain information about
a) All symbols that are defined in this program that may be reference elsewhere
& all symbols reference in this program but defined elsewhere.
b) Actual Object code translated version of source program
c) Those Location in the program whose content depend on the address at which
program is placed
d) End of Object Deck
21. RLD card contains which of the following information
a) The location of each constant that needs to be changed due to relocation
b) By what it has to be changed
c) The operation to be performed
d) All of above
22. Which part of system software must reside in main memory under all
circumstances?
a. Text editor b. Assembler
c. Linker d. Loader
23. Relocation bits used by relocating loader are specified by
a. Relocating loader itself b. Linker
c. Assembler d. Microprocessor
System Programming Mrs. Sunita M Dol, CSE Dept
5
24. Direct linking loader is example of
a. Absolute loader b. Relocating loader
c. Compile and go loader d. Dynamic loader
25. In absolute loading scheme which loader function is accomplished by assembler?
a. Relocation b. Allocation
c. Linking d. Loading
26. In direct linking loader which card is not related with object program?
a. ESD b. RLD
c. BSS d. TXT
27. Binary symbolic subroutine loader is example of
a. Absolute loader b. Compile and go loaders
c. Relocating loaders d. Direct linking loaders
29. In loaders, location and length of each address constant is maintained by
a. ESD b. TXT
c. RLD d. END
30. Address assigned by the loader to symbols is called
a. Load origin b. Load time address
c. Linked origin d. Link time address