GATE Assistant

Past questions › Computer Science and Information Technology › GATE 2026 set2

GATE 2026 set2 · CS · MCQ · 2 marks · Compiler Design › Syntax Analysis (Parsing)

GATE 2026 set2 Computer Science and Information Technology question: Consider the canonical LR(0) parsing of the grammar below using terminals \ a, b, c\ and…

Consider the canonical parsing of the grammar below using terminals and non-terminals with as the start symbol.

Which one of the following options gives the number of shift-reduce conflicts that will occur in the ACTION table?

  1. (A)

    2

  2. (B)

    3

  3. (C)

    4

  4. (D)

    5

Show answer

Official answer: D

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion