Home
SELF STUDY
BrowsePracticeTestsPlaylistDoubts & solutionsFree live classesOther courses

Compiler

Quick practice

Question 1 of 5

Consider the following SDT-

A -> A#B { A.val = A1.val + B.val }

A -> B {A.val = B.val}

B -> B$C {S1}

B -> C {B.val = C.val}

C -> num {C.val= number}

If the expression 8 # 6 $ 2 # 8 $ 6 # 2 $ 1 is evaluated to 70 then which of the following rule will be placed at S1?

A

B .val = B .val*C .val

B

B .val = B .val+C .val

C

None of these

D

B .val = B .val-C .val

Get unlimited practice with GATE - CSIT, DSAI & Interview Preparation subscription

pick

Boost your performance with adaptive practice tests

pick

Practice every concept in the syllabus

pick

Compare your speed and accuracy with your peers

pick

Download the app and practice on the go