Skip to content
Early access — you're among the first to try PYQLabs. Share feedback
Concept drill

ambiguity

GATE CSE & IT · Context-Free Languages · 1987-2026

11
PYQs
100%
keyed
0
elite explanations
8
years appeared

Study anchor

Hopcroft-Ullman / Dragon Book

Automata, languages, parsing, syntax-directed translation

Practice action

Start latest PYQ

PYQs in this concept

All concepts →
2026 PYQ

Which of the following grammars is/are ambiguous?

easyanswer keybasic explanation
2026 PYQ

Consider the following grammar where $S$ is the start symbol, and $a$ and $b$ are terminal symbols. $$ S \rightarrow a S b S|b S| \in $$ Which of the following statements is/are tr...

mediumanswer keybasic explanation
2025 Q51

Consider two grammars G₁ and G₂ with the production rules given below: G₁: S → if E then S | if E then S else S | a E → b G₂: S → if E then S | M M → if E then M else S | c E → b w...

mediumanswer key
2025 PYQ

Consider two grammars $G_1$ and $G_2$ with the production rules given below: $G_1: S \rightarrow$ if $E$ then $S \mid$ if $E$ then $S$ else $S \mid a$ $$\mathrm{E} \rightarrow \mat...

mediumanswer keybasic explanation
2021 PYQ

Consider the following sentences : (i) Everybody in the class is prepared for the exam. (ii) Babu invited Danish to his home because he enjoys playing chess, Which of the following...

easyanswer keybasic explanation
2014 PYQ

Which one of the following problems is un-decidable?

easyanswer key
2007 PYQ

Consider the CFG with { S, A, B } as the non-terminal alphabet, { a, b } as the terminal alphabet, S as the start symbol and the following set of production rules: $$\eqalign{ & S...

mediumanswer key
2007 PYQ

Consider the grammar with non-terminals N = { S, C, S 1 }, terminals T = { a, b, i, t, e }, with S as the start symbol, and the following set of rules: $$\eqalign{ & S \to iCtS{S_1...

mediumanswer key
2006 PYQ

Consider the following statements about the context-free grammar $$G = \left\{ {S \to SS,\,S \to ab,\,S \to ba,\,S \to \varepsilon } \right\}$$ $$1.$$ $$G$$ is ambiguous $$2.$$ $$G...

mediumanswer key
1996 PYQ

Which of the following statements is false?

easyanswer keybasic explanation
1987 PYQ

A context-free grammar is ambiguous if:

easyanswer key