CC April 2022
CC April 2022
CC April 2022
:
P5162 [Total No. of Pages : 3
[5823]-606
T.Y.B.Sc. (Computer Science)
CS-366: COMPILER CONSTRUCTION
(CBCS 2019 Pattern) (Semester-VI)
Time : 2 Hours] [Max. Marks : 35
Instructions to the candidates:
1) Figures to the right indicate full marks.
2) All questions are compulsory.
b) State true or false, “Target code is generated in the analysis phase of the
compiler”.
f) State True or False. The yywrap() lex library function by default always
return 1.
P.T.O.
Q2) Attempt any Four of the following (out of 5). [2×4=8]
TS, T|S
R T
E E+T | T
TTF | F
F(E) | id
S aA | SbB
A aA | bB
B b
S A
A aA | Ad
B bBc | f
C g
[5823]-606 2
Q4) Attempt any Two of the following (out of 3) [2×4=8]
N V = E | E
E V
V a / E
S < L > | a
L L,S | S
- b (a + c) + (a + c) d
-i=i+5
hhhhh
[5823]-606 3