GATE CS 2025, set 2 · Question 52 · Theory of Computation · Multiple select (MSQ) · 2 marks · no negative marks

Let Σ = {a, b, c}. For x ∈ Σ^*, and α ∈ Σ, let #_α(x) denote the number of occurrences of α in x.
Which one or more of the following option(s) define(s) regular language(s)?

  1. (A) {aᵐ bⁿ | m, n ≥ 0}
  2. (B) {a, b}^* ∩ {aᵐ bⁿ cᵐ⁻ⁿ | m ≥ n ≥ 0}
  3. (C) {w | w ∈ {a, b}^*, #ₐ(w) ≡ 2 (mod 7), and #_b(w) ≡ 3 (mod 9)}
  4. (D) {w | w ∈ {a, b}^*, #ₐ(w) ≡ 2 (mod 7), and #ₐ(w) = #_b(w)}
Answer

Answer (A), (C)

Answer from the official GATE CS 2025 answer key.

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