You are on page 1of 3

Subject: System Programming and Operating System

Course: TE (2019 Pattern)


Question Bank
-------------------------------
UNIT I :- INTRODUCTION
------------------------------
1. What is system software? Explain any four System software�s in brief?

2. Differentiate between Assembler and Interpreter.

3. What is the need of symbol table (ST) and literal table (LT) in two pass
assembler? Explain fields of ST and LT with suitable examples.

4. Differentiate between compiler and interpreter?

5. Write a short Note on:


� Assembler,
� Linker
� Device Driver
� Loader
� Text Editor
� Interpreter

6. What are Assembler directives or pseudo-instructions? Give some examples for


assembler directives.

7. Draw and explain flowchart of Pass-I of two pass assembler with suitable
examples.

8. What is an interpreter? Explain components of the interpreter.

9. What are functions performed in Pass 2 by a two pass assembler?

10. Explain data structures used by an assembler.

11. Convert the following assembly language source code into intermediate code 1
generation using two pass assembler.

START 100
MOVER BREG, =�2�
LOOP MOVER AREG, N
ADD BREG, =�1�
ORIGIN LOOP+5
LTORG
ORIGIN NEXT +2
LAST
STOP
N DC �5�
END
12. Consider following assembly language code show output of pass-1 of two pass
assembler

START 100
READ N
MOVER B,='1'
MOVEM B,TERM
AGAIN MULT B,TERM
MOVER C,TERM
COMP C,N
BC LE,AGAIN
MOVEM B,RESULT
LTORG
PRINT RESULT
STOP
N DS 1
RESULT DS 20
TERM DS 1
END

13. Write algorithm of pass I of two pass assembler.

14. Enlist the different types of errors that are handled by PASS I & PASS II of
assembler.

15. What is the need of symbol table (ST) and literal table (LT) in two pass
assembler? Explain fields of ST and LT with suitable example.

16. Write a short note on Types of Software, with suitable diagram and examples.

17. Draw flowchart of pass II of two pass assembler.

Unit-II :- Macro Processor and Compilers


------------------------------------------------
1. Define Macro. What are the advantages of macro facility? How are macros
different from functions?

2. Explain AIF, AGO and ANOP statements with example.

3. What are advanced macro facilities? Explain any one in detail.

4. Explain macro expansion with relevant example.

5. What are the data structures used in the design of macro processor?

6. Draw a neat flowchart of Pass-I of two pass macro processor and explain it.

7. Justify use of Macro name table(MNT) in macro processor? Explain different


fields of MNT with suitable example?

8. Draw a general model of compiler and explain all phases in brief.

9. What is Compiler? Explain any two phases of compiler with suitable diagram?

10. Consider input �d = a + b * 2;� and show the output of each phase of compiler
with suitable diagram?

11. Consider the input "X=Y+Z*5;" and show the output of each phase of the compiler
with suitable diagram?

12. Comment on the statement �Programs with macros require more space and less time
at runtime than programs with functions�.

13. Explain advance macro facilities using suitable example.


14. Explain MNT, MDT, MDTP, and ALA with respect to macro processor using example?

15. What are different ways in which we can specify arguments to macros?

16. Describe conditional Macro expansion.

17. Explain the following.


a)Macro Definition
b) Macro Call
c) Nested Macro call

You might also like