• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

GATE | GATE CS 2008 | Question 50

Which of the following statements are true?
I. Every left-recursive grammar can be converted to a 
   right-recursive grammar and vice-versa
II. All [Tex]\\epsilon[/Tex] productions can be removed from any context-free 
    grammar by suitable transformations
III. The language generated by a context-free grammar all of whose 
     productions are of the form X --> w or X --> wY (where, w is a string of 
     terminals and Y is a non-terminal), is always regular
IV. The derivation trees of strings generated by a context-free grammar 
    in Chomsky Normal Form are always binary trees 

(A)

I, II, III and IV

(B)

II, III and IV only

(C)

I, III and IV only

(D)

I, II and IV only

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