lOMoARcPSD|35369030
Sem-6-BTCS-601-18 watermark
Computer science engineering (I. K. Gujral Punjab Technical University)
Scan to open on Studocu
Studocu is not sponsored or endorsed by any college or university
Downloaded by Danista Bhat (
[email protected])
lOMoARcPSD|35369030
Roll No. IL Total No. of Pages: 02
Total No. of Questions : 09
B.Tech. (CSE) (Sem.-6)
COMPILER DESIGN
Subject Code BTCS-601-18
M.Code 79249
Date of Examination 12-12-2022
Time: 3 Hrs. Max. Marks 60
INSTRUCTIONS To CANDIDATES:
1.
SECTION-A is COMPULSORY consisting of TEN questions carrying TWO marks
each.
2. SECTION-B contains FIVE questions carrying FIVE marks each and students
have to attempt any FOUR questions.
SECTION-C contains THREE questions carrying TEN marks each and students
3.
have to attempt any TWO questions.
SECTION-A
Write briefly:
1. a. Token
b. DFA
C. Augmented Grammar
d. Preprocessor
e. Loop Optimization
f DAG
g. Parse tree
h. Parsing Table
i. Symbol Table
Heap
(52)-52
1 M-79249
Downloaded by Danista Bhat ([email protected])
lOMoARcPSD|35369030
SECTION-B
Explain the role of lexical analyzer.
3. Perform predictiveparing cm following
grammar
ETE
El+TE |e
T FT
T*FT |e
F id (E)
*e denotes epsilon
4. Explain the role of basic blocks with the use of a suitable example.
5. Discuss issues of code generation in compiler design.
6 Write a note on Lex.
SECTION-C
7. Write a note on peephole optimization.
What is directed acyclic graph? Discuss the procedure for construction of a directed
8. a
acyclic graph with suitable example.
9. How three address code is implemented in compiler?Explain in detail.
No. or Making of passing request on any
NOTE : Disclosure of Identity by writing Mobile
will lead to UMC against the Student.
page of Answer Sheet
(S2)-52
2 M-79249