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

Identify the language generated by the following grammar, where S is the start variable.
S → XY ; X → aX | a ; Y → aYb | ε

  1. (A) {aᵐ bⁿ | m ≥ n, n > 0}
  2. (B) {aᵐ bⁿ | m ≥ n, n ≥ 0}
  3. (C) {aᵐ bⁿ | m > n, n ≥ 0}
  4. (D) {aᵐ bⁿ | m > n, n > 0}
Answer

Answer (C)

Answer from the official GATE CS 2017 answer key.

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