Question 94
Explanation
Consider the language L = {an bn-3 | n > 2} on Σ = {a, b}. Which one of the following grammars generates the language L?
Answer : (4) S→aaaA, A→aAb|λ Explanation
Previous | Next |
UGC NET CS December 2019 - Question 93 | UGC NET CS December 2019 - Question 95 |
Option 2 is incorrect because it can generate “null string”. so given condition (n > 2) is violated.
Option 3 is incorrect because it can generate “a” where n=1. so given condition (n > 2) is violated.
Option 4 is correct because it can generate strings ab, aaa, aaaab, ... where n > 2.
So, option 4 is correct answer