Beruflich Dokumente
Kultur Dokumente
om
Candidates are required to give their answers in their own words
as far as practicable
t.c
GROUP A
( Multiple Choice Type Questions )
bu
a) firstpos(c1) U firstpos(c2)
b) firstpos(c1) I firstpos(c2)
m
c) if (nullable(c1))
firstpos(c1) U firstpos(c2)
else firstpos(c1)
d) if (nullable(c2))
firstpos(c1) U firstpos(c2)
else firstpos(c1) .
a) Syntax Analysis
b) Semantic Analysis
c) Code Optimization
iii) FIRST ( ) is
om
a) FIRST ( )
b) FIRST ( ) U FIRST ( )
else FIRST ( )
bu
d) none of these
b) any e-entry
7101 2
CS/B.Tech(CSE)/SEM-7/CS-701/2011-12
om
vii) A parse tree showing the values of attributes at each
Checking ?
d) None of these.
b) Loop jamming
c) Loop unrolling
d) Loop heading.
x) YACC builds up
om
a) SLR parsing table
d) none of these.
bu
GROUP B
( Short Answer Type Questions )
yw
following example.
Analyzer.
7101 4
CS/B.Tech(CSE)/SEM-7/CS-701/2011-12
S aBc
om
B bc | b 1+4
GROUP C
( Long Answer Type Questions )
Answer any three of the following. 3 15 = 45
t.c
7. Describe with a block diagram the parsing technique of LL(1)
bu
parser. Parse the string 'abba' using LL(1) parser where the
a b $
S S aBa
m
B B B bB
S i C t SE | a
EeS|
Cb. 4+4+7
S Cb
C bC / d . 4+3+8
om
What are the main contributions of Syntax Directed
Translation in Compiler ? Design a Dependency Graph and
Direct Acyclic Graph for the string :
t.c
a+a(bc)+(bc)d. 7+3+5
a = ( a + b ) ( c + d + ( a + b + c ) into
i) Quadruple
yw
ii) Triple
i) location = 1
ii) i=0
iv) goto 13
v) t 1 = 4i
7101 6
CS/B.Tech(CSE)/SEM-7/CS-701/2011-12
vi) t2 =A [t1 ]
vii) if t 2 = x goto 9
viii) goto 10
ix) location = i
x) t3 =i +1
xi) i=t3
om
xii) goto 3
xiii) ......
t.c
c) What do you understand by terminal table and literal
table ? 8+5+2
bu
b) Activation Record
c) Symbol Table
m
d) Pe phole optimization
e) Input Buffering.