Which one of the following is TRUE at any valid state in shift-reduce parsing?

GATE · 2015 · CS · Set 1 · Computer Science & IT

Which one of the following is TRUE at any valid state in shift-reduce parsing?

  1. A.

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

  2. B.

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

  3. C.

    The stack contains only a set of viable prefixes

  4. D.

    The stack never contains viable prefixes

Attempted by 76 students.

Show answer

Correct answer: C

The worked solution is available to enrolled students.

Video solution available to enrolled students.

Explore the full course: Iocl Engineers Officers Grade A Paper 2

Loading lesson…