GATE CS 2026 (Afternoon) — Question 29

Theory of Computation (TOC)Context-Free Grammars & Push-Down AutomataMSQ1 markMedium

Which of the following grammars is/are ambiguous?
  1. A
    \( S \rightarrow aSb \mid \epsilon \)
  2. B
    \( E \rightarrow E + E \mid E * E \mid \text{id} \)
  3. C
    \( S \rightarrow aS \mid Sa \mid \epsilon \)
  4. D
    \( S \rightarrow aS \mid \epsilon \)
Practise the full 2026-AN paper
Challenge a friend: WhatsApp Telegram
From RENYXERAWhat rank do your marks get?GATE score, likely All-India Rank and qualifying marks for your category.
Practise more on Context-Free Grammars & Push-Down AutomataTimed, 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