Multiple Choice
Consider the grammar with the following translation rules and E as the start symbol.
E ? E1 # T { E.value = E1.value * T.value } |
T{ E.value = T.value }T ? T1 &
F { T.value = T1.value + F.value }
| F{ T.value = F.value }F ? num { F.value = num.value }
Compute E.value for the root of the parse tree for the expression: 2 # 3 & 5 # 6 & 4.
A) 200
B) 180
C) 160
D) 40
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Consider the intermediate code given below:<br>1) i
Q2: Consider the following C code segment.<br>For (i
Q4: Consider the following expressionu<br>*v+a-b*c<br>Which one of the
Q5: Assume that the SLR parser for a
Q6: In multi-programmed systems, it is advantageous if
Q7: Which of the following statement(s) regarding a
Q8: Incremental-Compiler is a compiler<br>A)which is written in
Q9: Shift-Reduce parsers perform the following:<br>A)Shift step that
Q10: A language L allows declaration of arrays
Q11: Which of the following grammar rules violate