GATE Assistant

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

GATE 2025 set2 · CS · MSQ · 2 marks · Compiler Design › Syntax Analysis (Parsing)

GATE 2025 set2 Computer Science and Information Technology question: Consider two grammars G 1 and G 2 with the production rules given below: G 1: S if\ E\…

Consider two grammars and with the production rules given below:

:

:

where are the terminals.

Which of the following option(s) is/are CORRECT?

  1. (A)

    is not and is .

  2. (B)

    is and is not .

  3. (C)

    and are not .

  4. (D)

    and are ambiguous.

Show answer

Official answer: C,D

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion