GATE Computer Science (CS) 2016 Shift 1 Solved Paper

© examsiri.com
Question : 56 of 65
 
Marks: +1, -0
Consider the following Syntax Directed Translation Scheme (SDTS), with non-terminals {S, A} and terminals {a, b}.
S → aA {print 1}
S → a {print 2}
A → Sb {print 3}
Using the above SDTS, the output printed by a bottom-up parser, for the input aab is:
Go to Question: