• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

UGC-NET | UGC-NET CS 2017 Dec 2 | Question 34

Which of the following statements is/are TRUE ? (i) The grammar S → SS | a is ambiguous (where S is the start symbol). (ii) The grammar S → 0S1 | 01S | e is ambiguous (the special symbol e represents the empty string and S is the start symbol). (iii) The grammar (where S is the start symbol).
S → T/U
T → x S y ? xy ? e
U → yT
generates a language consisting of the string yxxyy.

(A)

Only (i) and (ii) are TRUE

(B)

Only (i) and (iii) are TRUE

(C)

Only (ii) and (iii) are TRUE

(D)

All of (i), (ii) and (iii) are TRUE

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