Midsem II Set-1
Midsem II Set-1
Mid Semester Test II March 2019 Mid Semester Test II March 2019
Branch: Information Technology Branch: Information Technology
Semester: VI Max. Marks-20 Semester: VI Max. Marks-20
Subject: Compiler Design (IT6004) Time: 2Hrs Subject: Compiler Design (IT6004) Time: 2Hrs
Note: 1 Attempt any two questions from Q2 and Q3. Attempt any one Note: 1 Attempt any two questions from Q2 and Q3. Attempt any one
question from Q1. question from Q1.
S.No Question MM S.No Question MM
CO CO
att. att.
Differentiate between Synthesized and inherited Differentiate between Synthesized and inherited
a a
attributes with an example. attributes with an example.
1 4 CO3 1 4 CO3
Define S-attributed and L-attributed definition Define S-attributed and L-attributed definition
b b
with an example with an example
Translate the following code into an equivalent Translate the following code into an equivalent
a three address code. a three address code.
-(a+b) / ( c+d) * (a+b+c) -(a+b) / ( c+d) * (a+b+c)
2 Explain in details about quadruple, triple and 8 CO4 2 Explain in details about quadruple, triple and 8 CO4
b b
indirect triple. indirect triple.
Explain Static, stack and heap allocation Explain Static, stack and heap allocation
c c
strategies in brief. strategies in brief.