Total No. of Questions : 4] SEAT No.
6
22
P8474 [Total No. of Pages : 1
ic-
Oct-22/BE/Insem-53
tat
B.E. (Computer Engineering)
7s
COMPILERS
6:0
02 71
(2019 Pattern) (Semester - VII) (Elective - IV) (410245 E)
3:4
3
21
Time : 1 Hour] 0/1 11 [Max. Marks : 30
0
0/2
Instructions to the candidates:
.22 GP
1) Answer Q1 or Q2, Q3 or Q4.
2) Figures to the right indicate full marks.
E
61
6
C
22
ic-
Q1) a) What is Compiler? Explain the design issues of Compiler. [4]
.75
tat
b) Elaborate the different phases of Compiler with suitable diagram. [5]
7s
43
4.1
c) Discuss LEX with its features and specifications. [6]
6:0
71
11
3:4
OR
13
21
Q2) a) Derive automatic construction of lexical analyzer using LEX. [4]
01
02
b) Discuss process of lexical analysis with example and give its block
0/2
schematic. [5]
GP
0/1
c) Discuss case study example of LEX compiler and explain lexical analysis
CE
61
Tokens. [6]
26
c-2
.22
i
.75
tat
Q3) a) How can you differentiate between Top-Down and Bottom-Up parser?
7s
43
Suitable example expected. [4]
4.1
6:0
b) Discuss CFG with its syntax analysis. [5]
71
11
3:4
c) Discuss error detection and recovery related to parsing with example.[6]
13
21
OR
01
02
Q4) a) How would you outline predictive parser? Discuss LALR parser using
0/2
GP
Ambiguous Grammar. [4]
0/1
b) Discuss automatic construction of Parser using YACC with example.[5]
CE
61
c) Discuss need of semantic analysis. Describe type checking and type
.22
conversion with example. [6]
.75
43
4.1
11