Questions: Pumping Lemma for Context-Free Languages

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

You want to prove L = {aⁿbⁿcⁿ | n ≥ 0} is not context-free. You choose s = aᵖbᵖcᵖ. The adversary must split s = uvxyz with |vxy| ≤ p and |vy| ≥ 1. Why does pumping always produce a string outside L?

ABecause the string aᵖbᵖcᵖ is in L, so pumping must remove it from the language
BBecause |vxy| ≤ p forces v and y to span at most two of the three symbol blocks, so pumping cannot increase all three counts equally
CBecause v and y are pumped independently, allowing you to increase only the b-count
DBecause the adversary is required to pick v and y from non-adjacent symbol blocks
Question 2 Multiple Choice

A student claims to have proved that L = {ww | w ∈ {a,b}*} is a CFL by demonstrating that all sufficiently long strings in L satisfy the five-part pumping condition. What error has the student made?

AThe CFL pumping lemma requires strings over a three-symbol alphabet, so it cannot apply here
BThe student should have used the regular pumping lemma first to rule out regularity
CSatisfying the pumping lemma is a necessary but not sufficient condition for being a CFL — it cannot prove a language is context-free
DThe student pumped v and y separately rather than simultaneously, invalidating the construction
Question 3 True / False

In the CFL pumping lemma, the two substrings v and y must always be pumped simultaneously — producing uvⁱxyⁱz — rather than inflated independently.

TTrue
FFalse
Question 4 True / False

The pumping lemma for context-free languages can prove that a language is context-free by demonstrating that its strings satisfy the pumping conditions for some choice of pumping length p.

TTrue
FFalse
Question 5 Short Answer

In a pumping lemma proof that a language is not context-free, who chooses the candidate string s, and who chooses the decomposition uvxyz? Why does this adversarial structure matter?

Think about your answer, then reveal below.