GATE Assistant

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

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

GATE 2025 set1 Computer Science and Information Technology question: Which of the following statement(s) is/are TRUE while computing First and Follow during…

Which of the following statement(s) is/are TRUE while computing First and Follow during top down parsing by a compiler?

  1. (A)

    For a production , will be added to .

  2. (B)

    If there is any input right end marker, it will be added to , where is the start symbol.

  3. (C)

    For a production , will be added to .

  4. (D)

    If there is any input right end marker, it will be added to , where is the start symbol.

Show answer

Official answer: A,D

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion