Questions: The Chomsky Hierarchy

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

The language L = {aⁿbⁿ | n ≥ 1} is context-free but not regular. What does this mean about its computational recognition?

AL can only be recognized by a linear-bounded automaton — a pushdown automaton is insufficient
BL can be recognized by a pushdown automaton but not by a finite automaton
CL can be recognized by a sufficiently large finite automaton, since n has a maximum in practice
DL is context-free, meaning it cannot be recognized by a Turing machine
Question 2 Multiple Choice

A programming language designer wants the syntax parseable by a deterministic pushdown automaton. Which grammar type should they target?

AType 0 (recursively enumerable), because unrestricted grammars are the most expressive
BType 3 (regular), because finite automata are the fastest parsers
CType 2 (context-free), because pushdown automata correspond to context-free grammars
DType 1 (context-sensitive), because real programming languages need context about surrounding symbols
Question 3 True / False

Every regular language is also a context-free language, because the Chomsky hierarchy is a proper containment chain (Type 3 ⊂ Type 2 ⊂ Type 1 ⊂ Type 0).

TTrue
FFalse
Question 4 True / False

A context-sensitive language cannot be recognized by a Turing machine — it requires exactly a linear-bounded automaton, no more.

TTrue
FFalse
Question 5 Short Answer

Why does the Chomsky hierarchy pair each grammar type with an automaton class? What does this dual perspective reveal about language complexity?

Think about your answer, then reveal below.