CD Important Questions
CD Important Questions
UNIT-I
1. a) Explain about Language processing system and also differentiate compiler and
interpreter? [6M+3M]
b) Define Phase, Pass, Regular expressions and Transition diagram. [3M]
UNIT-II
3. a) Describe the rules to compute FIRST and FOLLOW functions with examples [8M]
b) Discuss how Brute-Force approach operates in top down parsing. [4M]
UNIT-III
1. a) Write the steps for the efficient construction of LALR parsing table. Explain with an
example. [8M]
b) Draw the structure of LR parser (i.e. SLR). [4M]
2. a) Write the steps for the construction of CLR parsing table. [8M]
b) Write about SR conflicts and RR conflicts of shift reduce parsers. [4M]
3. a) Explain the compaction of LR parsing tables with an example. [8M]
b) Differentiate between shift-reduce and Operator Precedence Parsers. [4M]
UNIT-IV
2. a) Define S- attributed and L- attributed grammars and explains with an example? [4M]
b) Write the SDT for desktop calculator. [5M]
c) Write a short note on types and declarations. [3M]
UNIT-V
1. a) Define a Symbol table? And explain what is the need and use of symbol tables?[5M]
b) Explain about Peephole optimization? [7M]
UNIT-VI
1. What is the purpose of Code optimization? Explain the Machine Independent Code
optimization with an example (i.e. Semantic preserving Transformations)? [12M]