• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE | Gate IT 2008 | Question 32

Consider a CFG with the following productions. S → AA | B A → 0A | A0 | 1 B → 0B00 | 1 S is the start symbol, A and B are non-terminals and 0 and 1 are the terminals. The language generated by this grammar is

(A)

{0n 102n | n ≥ 1}

(B)

{0i 10j 10k | i, j, k ≥ 0} ∪ {0n 102n | n ≥ l}

(C)

{0i 10j | i, j ≥ 0} ∪ {0n 102n | n ≥ l}

(D)

The set of all strings over {0, 1} containing at least two 0\'s

(E)

None of the above

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments