GATE CS 2025 (Forenoon) — Question 46

Compiler DesignLexical Analysis & Parsing Architectures (LL(1), LR(1), LALR)MSQ2 marksMedium

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 \( A \rightarrow \epsilon \), \( \epsilon \) will be added to First(A).
  2. B
    If there is any input right end marker, it will be added to First(S), where S is the start symbol.
  3. C
    For a production \( A \rightarrow \epsilon \), \( \epsilon \) will be added to Follow(A).
  4. D
    If there is any input right end marker, it will be added to Follow(S), where S is the start symbol.
Practise the full 2025-FN paper
Challenge a friend: WhatsApp Telegram
From RENYXERAThis week's 10-question challengeSame 10 past-GATE questions for everyone this week — see where you stand.
Practise more on Lexical Analysis & Parsing Architectures (LL(1), LR(1), LALR)Timed, in the real exam interface · free to start

A GATE question every morning

One real past-paper question every morning for your branch, answer hidden until you tap. Free on Telegram.

Join
Stuck? Ask in the student group