GATE CS 2025 (Afternoon) — Question 40

Compiler DesignLexical Analysis & Parsing Architectures (LL(1), LR(1), LALR)MCQ2 marks · −2/3 if wrongHard

Given a Context-Free Grammar G as follows: \( S \rightarrow Aa \mid bac \mid dc \mid bda \) \( A \rightarrow d \) Which ONE of the following statements is TRUE?
  1. A
    \( G \) is neither LALR(1) nor SLR(1)
  2. B
    \( G \) is CLR(1), not LALR(1)
  3. C
    \( G \) is LALR(1), not SLR(1)
  4. D
    \( G \) is LALR(1), also SLR(1)
Practise the full 2025-AN paper
Challenge a friend: WhatsApp Telegram
Recommended book · affiliate linkCompilers: Principles, Techniques & ToolsThe "Dragon Book" for parsing, syntax-directed translation and code generation.
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