Questions: Equivalence of CFGs and Pushdown Automata

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

You want to prove that the language of well-formed HTML tags is context-free. You find a clean CFG that generates it, but constructing a PDA seems complicated. What does the CFG-PDA equivalence theorem allow you to conclude?

AYou must construct both a CFG and a PDA — one alone is insufficient proof
BThe CFG alone is sufficient proof — the equivalence theorem guarantees a PDA exists even if you don't build one
CA CFG can only prove a language is regular; PDAs are required for context-free proofs
DYou should use the pumping lemma instead, since direct constructions are not rigorous proofs
Question 2 Multiple Choice

Which statement best captures what the CFG-PDA equivalence theorem establishes?

APDAs are strictly more powerful than CFGs because they have memory (the stack) that CFGs lack
BCFGs are more powerful for language specification; PDAs are more powerful for recognition — they complement each other
CCFGs and PDAs are equally expressive: the context-free languages are exactly the languages recognizable by PDAs
DPDAs can recognize all context-free languages, but CFGs can only generate a subset of them
Question 3 True / False

The CFG-to-PDA construction is more complex than the PDA-to-CFG construction.

TTrue
FFalse
Question 4 True / False

If a language can be recognized by a pushdown automaton, then some context-free grammar generates exactly that language.

TTrue
FFalse
Question 5 Short Answer

Explain the key idea behind the CFG-to-PDA construction: what is the PDA doing with its stack, and how does this simulate the grammar?

Think about your answer, then reveal below.