Context-Free Grammars and Push-Down Automata: GATE CS previous year questions
Context-Free Grammars and Push-Down Automata is part of Theory of Computation in the GATE CS syllabus. This page lists 20 past-paper questions on it from official GATE CS papers.
Context-free grammars and push-down automata
- Which of the following languages is generated by the given grammar? S → aS | bS | ε
- Consider the following context-free grammar G, where S, A, and B are the variables…
- If G is a grammar with productions S → SaS | aSb | bSa | SS | ε where S is the start…
- Consider the context-free grammar G below S → aSb | X ; X → aX | Xb | a | b where S and…
- Which ONE of the following languages is accepted by a deterministic pushdown automaton?
- A student wrote two context-free grammars G1 and G2 for generating a single C-like array…
- Consider the language L = {aⁿ | n ≥ 0} ∪ {aⁿ bⁿ | n ≥ 0} and the following statements…
- Consider the pushdown automaton (PDA) P below, which runs on the input alphabet {a, b}…
- Consider the following context-free grammar G. S → abaABAbbaA → aaBBAb | bBabaaB → aBb |…
- Which of the following pairs have DIFFERENT expressive power?
- Consider the following context-free grammars: G₁: S → aS | B, B → b | bB G₂: S → aA |…
- Consider a context-free grammar G with the following 3 rules. S → aS, S → aSbS, S → c…
- Let G = (V, Σ, S, P) be a context-free grammar in Chomsky Normal Form with Σ = {a, b, c}…
- In a pushdown automaton P = (Q, Σ, Γ, δ, q₀, F), a transition of the form, Two states…
- Which of the following grammars is/are ambiguous?
- Consider the NPDA ⟨ Q = {q₀, q₁, q₂}, Σ = {0,1}, Γ = {0,1,⊥}, δ, q₀, ⊥, F = {q₂}⟩, where…
- Consider the following languages over the alphabet Σ = {0,1,c}: L₁ = {0ⁿ 1ⁿ | n ≥ 0}L₂ =…
- Identify the language generated by the following grammar, where S is the start variable…
- Consider the following context-free grammar over the alphabet Σ = {a, b, c} with S as…
- Consider the transition diagram of a PDA given below with input alphabet Σ = {a, b} and…
More Theory of Computation chapters
- Regular Expressions and Finite Automata
- Regular Languages and Pumping Lemma
- Turing Machines and Undecidability
Frequently asked questions
How many GATE CS questions are there on Context-Free Grammars and Push-Down Automata?
PrepWiser has 20 past-paper questions on Context-Free Grammars and Push-Down Automata from official GATE CS papers.
Are these real GATE CS questions?
Yes. Each one is from an official GATE CS paper and names its year and set. The answers come from the official answer keys.
Where are the step-by-step solutions?
Every question shows its answer, free. Step-by-step solutions, where available, are part of GATE CS Pro.