All mock tests are FREE till 31 December — register to save your progress
Unit 8 · Theory of Computation and Compilers Paper 2 CS · November 2020

Consider L1 = {a^(z²) | z is an integer}, L2 = {a^(2z) | z ≥ 0}, L3 = {ωω | ω ∈ {a, b}*}. Which of the languages is (are) regular?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. L2 only

Explanation

Even-length strings of a's, (aa)*, are regular. Perfect-square lengths and copies ww are not regular (pumping lemma).

Note: The exponents are garbled in the source; this reading (L2 = a^(2z)) is the one consistent with the official key.

More Theory of Computation and Compilers questions