CST265: System Programming Question Bank UNIT-1
CST265: System Programming Question Bank UNIT-1
Question Bank
UNIT-1
1. What do you understand by the term System Software? 3
2. What is the importance of system software in a computer system? Give an
example of a system software and explain how the overall performance of the
system depends on it. 4 + 3
3. How will you classify a software as either an application software or a system
software? 3
4. Would you consider a text editor such as vi a system program or an application
program? Justify. 1 + 3
5. How would you classify system software? In which categories would you put
language processors and operating systems? Why? 3 + 3
6. Why is "assembler" considered as a system program? 2
7. What are the benefits of using "language processors? 5
8. What are the various language processing activities in the domain of system
software? What do you understand by cross-compilation? 4 + 3
9. Mention some advantages of assembly language over machine language. 5
10.What are some advantages of assembly languages over high level languages? 3
11. In an environment such as UNIX, several programs reside in the system
simultaneously, and programs may be invoked by various users in any arbitrary
order. How does assembly language or a high level language facilitate
preparation of programs for such environments? 5
12.What are assembler directives in assembly languages ? Illustrate with an
example the importance of assembler directives. 3 + 3
DS 2
MOV A, 10
CALL PRINT
DEC A
JNZ AGAIN
UNIT-2
21.Briefly describe a possible sequence of steps of an assembler. What is a major
difference between the creation of a mnemonic table and that of a symbol
table ? 5 + 2
22.What does lexical analysis mean? Give a possible outline of a lexical analyser
program/module (you may assume C programming language for the
purpose). 2 + 5
23.What is a commonly used and convenient method of creating an efficient
lexical analyser (mention important steps in this method)? 4
24.What is "flex" ? 3
25.What is flex used for ? Write the regular expression that describes a word that
has a sequence of hexadecimal digits followed by a dot and then another
sequence of hexadecimal digits. The word may optionally have a hyphen as a
prefix. Give two examples of such words. 2 + 2 + 1
26.Why is a symbol table used by an assembler ? Give a possible format of a
symbol table record and state why you would use either an array, a hash table,
or any other data structure to keep these records. 5
27.What are the different stages in which a symbol table is accessed during an
assembly process ? Write C statements to define a possible symbol table. 3 + 4
28.Suppose an assembly language allows the use of literals and literals can be
alloted memory space either at the end of the program code or at places
corresponding to ``LTORG" statements in the program. Describe how this can
be handled by an assembler. 7
29.Using a small segment (less than 10 statements) of an assembly language
program as an example, show the contents of the symbol table and the literal
table after an assembler performs analysis of the program. What do you
understand by forward reference ? 6 + 2
30.Why is Intermediate code needed in the translation process by an assembler ?
Describe a suitable format for intermediate code. 3 + 3
31.Give a small example that explains the usage and need of "table of incomplete
instructions". 5
4+5
40.What are the various methods of binding formal and actual parameters in
macros ? How is parameter passing in macros different from that in subroutines
? 3+3
UNIT-3
41.How are "expansion time variables" in macros different from normal program
variables? 3
42.What do you understand by the terms linking and relocation? What
requirements do these tasks put on the translation process? 5
43.How can program relocation be performed? 4
5+5+5