Home »
MCQs »
Theory of Computation MCQs
A grammar is said to be ambiguous if ____
47. A grammar is said to be ambiguous if ____.
- There exists more than one leftmost derivation
- More than one rightmost derivation
- More than one parse tree for the given input string
- None
- All of the above
Answer: E) All of the above
Explanation:
A grammar is said to be ambiguous if there exists more than one leftmost derivation or more than one rightmost derivation or more than one parse tree for the given input string.