Gate CS-2016-1 Question Paper With Solutions

Q. 56 Consider the following Syntax Directed Translation Scheme (SDTS), with non-terminals {S, A} and terminals {a, b}}.

Gate CS-2016-1 Question Paper With Solutions

Using the above SDTS, the output printed by a bottom-up parser, for the input aab is

(A) 1 3 2

(B) 2 2 3

(C) 2 3 1

(D) Syntax Error

Answer: (C)

Explanation:

Gate CS-2016-1 Question Paper With Solutions

Learn More:   Gate EE-2017-2 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here