Btech Cse 7 8 Sem Compiler Design A2995 Dec 2018
Btech Cse 7 8 Sem Compiler Design A2995 Dec 2018
Btech Cse 7 8 Sem Compiler Design A2995 Dec 2018
com
INSTRUCTION TO CANDIDATES :
1. SECTION-A is COMPULSORY consisting of TEN questions carrying T WO marks
each.
2. SECTION-B contains FIVE questions carrying FIVE marks each and students
has to attempt any FOUR questions.
3. SECTION-C contains T HREE questions carrying T EN marks each and students
has to attempt any T WO questions.
SECTION-A
Answer briefly :
4. Define bootstrapping.
1|M - 7 1 9 0 5 (S2)-337
http://www.ptustudy.com
http://www.ptustudy.com
SECTION-B
b) What is the significance of quadruples, triples? Write quadruples and triples for the
expression : (2.5)
(A + B) * (C + D) – (A + B + C)
13. What are three representations of IR (Intermediate Code)? Discuss SDT for three address
code generation with example. (5)
15. What is Context Free Grammar (CFG)? Discuss Shift-Reduce Parser with example. (5)
SECTION-C
b) What is Handle Pruning? Write with an example, how handle is removed while
parsing a string?
b) Discuss ambiguous and non-ambiguous parse trees. How ambiguity is removed from
a parse tree?
2|M - 7 1 9 0 5 (S2)-337
http://www.ptustudy.com