GATE Assistant

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

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

GATE 2024 set2 Computer Science and Information Technology question: Consider the following context-free grammar where the start symbol is S and the set of…

Consider the following context-free grammar where the start symbol is and the set of terminals is .

The following is a partially-filled LL(1) parsing table.

$
(1) (2)
(3)
(4)

Which one of the following options represents the CORRECT combination for the numbered cells in the parsing table?

Note: In the options, “blank” denotes that the corresponding cell is empty.

  1. (A)

    (1) (2) (3) (4)

  2. (B)

    (1) (2) (3) (4)

  3. (C)

    (1) (2) (3) blank (4) blank

  4. (D)

    (1) (2) (3) blank (4) blank

Show answer

Official answer: A

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion