Gate CS-2015-1 Question Paper With Solutions

Q. 23 Which one of the following is True at any valid state in shift-reduce parsing ?

(A) Viable prefixes appear only at the bottom of the stack and not inside

(B) Viable prefixes appear only at the top of the stack and not inside

(C) The stack contains only a set of viable prefixes

(D) The stack never contains viable prefixes

Answer: (C)

Explanation:

Gate CS-2015-1 Question Paper With Solutions

Learn More:   Gate EC-2008 Question Paper With Solutions

LEAVE A REPLY

Please enter your comment!
Please enter your name here