MCQOPTIONS
Saved Bookmarks
| 1. |
Which of the following statements are true? 1. Every left-recursive grammar can be converted to a right-recursive grammar and vice-versa. 2. All -productions can be removed from any context free grammar by suitable transformations. 3. 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 non terminal), is always regular. 4. The derivation trees of strings generated by a context free grammar in Chomsky Normal Form are always binary trees. |
| A. | 1, 2, 3 and 4 |
| B. | 2, 3 and 4 |
| C. | 1, 3 and 4 |
| D. | 1, 2 and 4 |
| Answer» D. 1, 2 and 4 | |