It302 CD 2018 End May
It302 CD 2018 End May
express your
Q.2[a] What are the differences of a stack from a heap and
ples,
opinion on the type of languages (static/dynaric) with exam
'for which heap allocation is absolutely required.
[b} Ex-nl~; .... D
e ad
-t '
co de elirru. na .
and its con tlon w1.th an ample
vers io n to ta ex of 3 -addres
r get languag s cod e
e.
(5+ 5)
Q. 3 ( a1 U sin
gexamples of
your own, ex
'shift-reduce plain the term
conflict' and s 'left recurs
create in par an aly se what are the ion ' and
sers. problems the
[b} Construc se tw o
t the NDFA.s
lexical phase for l ) Identif .
iers 2) Keyw
ords 3) relop
for
Q .4 F o r the (5+5)
following gra
mmar
a ) Construc
t th e SDD fo
b ) Con r converting
struct DAG to
postfix notati
for a sample on
two operator string of the
s language inc 1
luding any
1
'
(5+5 ) ,
'<