SP Question Bank



         
Subject: SYSTEM PROGRAMMING QUESTION BANK FOR UT-1
(Chapter 1 & 2)
Multiple Choice Questions                                                                           
1. Intermediate code for “ORIGIN” is
a)      (IS, 03)
b)       (DL, 02)
c)      (AD, 03S)
d)      (AD, 04)
2. Execution gap is the gap between____________ .
a)      AD & ED
b)      PLD & ED
c)      AD & PLD
d)     None of the above
3.  The most phase structured grammar is _________.
a)      Regular Grammar
b)      CFG
c)      Context Sensitive Grammar
d)     None of the above
4.  C compiler works on __________
a)      Pass-I
b)      Pass-II
c)      Both a & b
d)     None of the above.
5. All errors are reported against the erroneous statement itself, if error reports are produced in
a)      Pass-I
b)      Pass-II
c)      A &b
d)     None of the above
6. Which of the following is/are assembler directives?
a)      STOP
b)      READ
c)      EQU
d)     a & c
e)      a & b
7. __________ are generated as output of scanning.
a)      Parse Trees
b)      Tokens
c)      Sequence of actions
d)     Intermediate representation.
8. A/An __________statement indicates an action to be performed during the execution of the    assembled program
a)      Declarative
b)      Imperative
c)      Assembler directives
d)     All above
9. Compiler bridges a semantic gap between which domains?
a)      Application  & Execution
b)      Application & PL
c)      PL & execution
d)     None of these
10. Which of the following is not the type of statement of assembly language programming?
a)      Imperative Statements
b)      Assembler directives
c)      Assembler instructor
d)     Declaration statements
11. Which of the following is an example of problem oriented language?
a) BASIC                                                                    b) PL/1
c) FORTRAN                                                             d) All of above
e) none of above
12. A factor in the selection of a source language is
a) programmer skill                                                                 b) language availability
c) program compatibility with other software                        d) all of athe above

13. In which addressing mode, the effective address of the operand is generated by adding a constant value to the contents of register?
A)
absolute mode
B)
indirect mode
C)
immediate mode
D)
index mode

14. In analyzing the compilation of PL/I program, the term "Lexical analysis" is associated with
) recognition of basic syntactic constructs through reductions
) recognition of basic elements and creation of uniform symbols
) creation of more optional matrix
) use of macro processor to produce more optimal assembly code

                       


1) Explain different types of grammars with their characteristics & limitations.
2) Differentiate between translator & interpreter.
3) List & explain advanced assembler directives with example.
4) Explain different types of assembly language statements.
5) Write note on LEX and also give example.
6) Explain is LPDT.
7) Differentiate between translator and interpreter.
8) Discuss forward reference, language processor pass & IR. What are desirable properties    of IR?
9) Explain in detail fundamental language processing activities.
10) Discuss Pass-I of Two Pass Assembler. Write an assembly language program & display the    contents of different data structures after Pass-I.
11) Write & explain the algorithm used for two pass assembler in detail. 
12) Explain different types of grammars with their characteristics and limitations.
13) Explain scanning and parsing in detail.
14) Note on classification of grammars.
15) How LEX works? Give illustrations.



Comments

Post a Comment