| 21. |
Which among the following is the root of the parse tree?
|
||||||||
|
Answer:
Option (d) |
| 22. |
__________ is the graphical representation of a grammar.
|
||||||||
|
Answer:
Option (c) |
| 23. |
Which of the following derivations does a top-down parser use while parsing an input string? The input is assumed to be scanned in left to right order
|
||||||||
|
Answer:
Option (a) |
| 24. |
A context free language is called ambiguous if
|
||||||||
|
Answer:
Option (c) |
| 25. |
CFGs are more powerful than
|
||||||||
|
Answer:
Option (d) |
| 26. |
Every grammar in Chomsky Normal Form is:
|
||||||||
|
Answer:
Option (b) |
| 27. |
While converting the context free grammar into chomsky normal form, which of the following is necessary
|
||||||||
|
Answer:
Option (d) |
| 28. |
Which of the following grammars are in Chomsky Normal Form:
|
||||||||
|
Answer:
Option (a) |
| 29. |
In conversion from CFG to CNF, the number of nonterminal to be introduced for the terminals are:
|
||||||||
|
Answer:
Option (b) |
| 30. |
The variable which produces is called:
|
||||||||
|
Answer:
Option (b) |