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

Language L₁ is defined by the grammar: S₁ → aS₁b | ε
Language L₂ is defined by the grammar: S₂ → abS₂ | ε
Consider the following statements:
P: L₁ is regular
Q: L₂ is regular
Which one of the following is TRUE ?

  1. (A) Both P and Q are true
  2. (B) P is true and Q is false
  3. (C) P is false and Q is true
  4. (D) Both P and Q are false
Answer

Answer (C)

Answer from the official GATE CS 2016 answer key.

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