Wednesday, 26 December 2012

CS2308 System Software laboratory VIVA QUESTIONs



System Software laboratory VIVA QUESTIONs

Define System Software.
Define data Format.
What is instruction set?
What is direct addressing mode and indirect addressing mode?
Differentiate between Assembler and Interpreter.
What is little Endian and Big Endian byte ordering?
What is the purpose of register in a system?
List the types of registers used in a system.
What is the size of the memory in a SIC and SIC/XE machines?
What are the instruction formats of SIC/SC?
.

Exercise 1-4
Define Assembler.
What are Assembler directives or pseudo-instructions?
Give some examples for assembler directives.
What are functions required in translation of source program to object code.
What is forward reference?
What are the tree types of records in a simple object program format?
What are the information present in a Header record or Give the format of header record?
What are the information present in a Text record?
What are the information present in a End record?
What are the information present in a Modification record?
What are the information present in a Define record?
What are the information present in a Refer record?
What are functions performed in Pass 1 by a two pass assembler?
What are functions performed in Pass 2 by a two pass assembler?
Name the data structures used by an assembler.
What is OPTAB?
What is SYMTAB?
What is LOCCTR?
What is the information present in intermediate file?
Write down the pass number(PASS1/PASS 2) of the following activities that occur in a two-pass assembler.
What is multiprogramming?
Name the addressing modes used for assembling register-to-memory instructions?
What is the use of BASE and NOBASE?
What is Register to memory instructions?
What is Register to register instructions?
What is the advantage of register-to-register instructions?
What is a relocatable program?
what is relocation?
Name the two methods of performing relocation?
What is the use of modification record?
What are the machine independent assembler features?
What is literal?
What is a literal pool?
What does an assembler perform when it encounters LTORG assembler directive?
Write a program to load the program counter address into the base register using literal.
What is LITTAB or What is basic data structure needed to handle literal?
Name the symbol defining statements.
What is the use of the symbol defining statement EQU?
What is the use of the symbol defining statement ORG?
What are the two types of expression?
What is relative expression?
What is absolute expression?
List the types of Assemblers.
How assemblers handle forward reference instructions?
List the types of one pass Assemblers.
What is load-and-go assembler?
What is multi-pass assembler?
What is MASM assembler?
What is near jump and far jump?
What are the functions of assembler

Exercise 5-9
What is a loader or absolute loader?
What is a bootstrap loader?
Write the algorithm for an absolute loader.
What are the functions of an absolute loader?
What are the disadvantages of an absolute loader or machine dependent loader?
What is a relocating or relative loader?
What is a bit mask?
What is the purpose of the relocation bit in object code of relocation loader or what is a relocation bit?
Define Linker.
Define Linking.
What is control section?
What is external reference?
Define External symbol.
What is EXTDEF?
What is EXTREF?
What are data structures needed for linking loader?
What is the use ESTAB?
What is reference number mechanism?
What is the advantage of reference number mechanism?
What is a load map?
What is automatic library call or library search?
Mention the usage of the directory by a loader?
What are the functions of Pass 1 and Pass 2 of an MS-Dos linker?
24.What is a macro instruction?
25.What is a macro?
26.What are the activities of the macro processing?
27.How does the macro processor help the programmer?
28.What are the two main assembler directives use with macro definitions?
29.What is the logic behind the two-pass macro processor?
30.What is the restriction imposed on a two-pass macro assembler?
31.What are the three main data structures involved in a macro processor?
32.What does the macro definition table contain?
33.What is the purpose of the ARGTAB?
34.How are the ambiguities in parameters avoided in macro processor?
35.Expand the following.
a. SUM            MACRO         &ID
b.                     LDA                X&ID->1
c.                     ADD               X&ID->2
d.                     ADD               X&ID->3
e.                     STA                 X&ID->5
f.                      MEND
                        SUM A

36.What is meant by conditional macro expansion?
37.Define positional parameters.
38.Draw the structure of the ARGTAB.
39.What should be done for recursive macro expansion if the chosen programming language does not support recursion?
40.What is a general purpose macro processor?
41.What are the advantages of a general purpose macro processor?
42.What are the disadvantages of a general purpose macro processor?
43.What is a pre-Processor?
44.What is a line-by-line macro processor?
45.What are the advantages of line-by-line macro processor?
46.How are the macro definitions and expansions handled in ANSI C languages?
47.Give any two examples of macro definitions in ANSI C.
48.In the following macro definition,
#define ABSDIFF(X,Y)[(X)>(Y)?(X)-(Y) : (Y)-(X)]
            Give the expansion for ABSDIFF (I+1,j-5).
49.Explain how macro expansions are controlled in ELENA macro processor.
50.For the following macro definitions.
#define DISPLAY (EXPR) printf(#EXPR “=%d\n”,EXPR)
Give the expansion for the macro invocation DISPLAY (I+J+1)
Don't You Think this Awesome Post should be shared ??
| CS2308 System Software laboratory VIVA QUESTIONs |
Back To Top Related Posts Plugin for WordPress, Blogger...