GATE CS 2014, set 1 · Question 25 · Theory of Computation · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer

Which one of the following is TRUE ?

  1. (A) The language L = {aⁿ bⁿ | n ≥ 0} is regular.
  2. (B) The language L = {aⁿ | n is prime} is regular.
  3. (C) The language L = {w | w has 3k+1 b's for some k ∈ ℕ with Σ = {a,b}} is regular.
  4. (D) The language L = {ww | w ∈ Σ^* with Σ = {0,1}} is regular.
Answer

Answer (C)

Answer from the official GATE CS 2014 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes