Questions: Kleene's Theorem

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A researcher needs to prove that the language of all strings over {a, b} containing an even number of a's is regular. Which approach is valid?

AOnly a DFA construction is valid proof of regularity — regular expressions and NFAs are informal notations
BOnly a regular expression suffices — DFAs are too restrictive to represent all regular languages
CAny one of the three — by Kleene's theorem, proving the language is recognized by a DFA, an NFA, or described by a regular expression is equally valid, since all three define exactly the regular languages
DThe researcher must show all three constructions agree before claiming regularity
Question 2 Multiple Choice

A programmer claims that regular expressions are strictly more powerful than DFAs because regex operators like union, concatenation, and Kleene star can be nested arbitrarily. Which response is correct?

AThe programmer is correct — arbitrary nesting of regex operators allows patterns no finite automaton can represent
BThe programmer is incorrect — Kleene's theorem proves that any language described by a regular expression can be recognized by a DFA, and any language recognized by a DFA can be described by a regular expression
CThe programmer is partially correct — NFAs are equivalent to regular expressions, but DFAs are strictly weaker
DThe programmer is incorrect — DFAs are strictly more powerful because they can be minimized to a canonical form
Question 3 True / False

Converting an NFA to an equivalent DFA via subset construction may exponentially increase the number of states, but the resulting DFA recognizes exactly the same language as the original NFA.

TTrue
FFalse
Question 4 True / False

Because DFAs, NFAs, and regular expressions most define the same class of languages, converting between them rarely significantly changes the size of the representation.

TTrue
FFalse
Question 5 Short Answer

State what Kleene's theorem proves and identify one thing it does NOT prove. Give one concrete example of a language that falls outside the theorem's scope.

Think about your answer, then reveal below.