What does Grammar ambiguity refer to?
- A. A compiler capable of creating executable code for a platform other than the one on which the compiler itself runs.
- B. A technique that compiles code into machine instructions at runtime rather than before execution.
- C. A property of a formal grammar where a single string can be produced by more than one distinct parse tree. ✓
- D. A parsing strategy that builds a parse tree starting from the start symbol and working down toward the input tokens.
Correct answer
C. A property of a formal grammar where a single string can be produced by more than one distinct parse tree.
Explanation
Grammar ambiguity refers to a property of a formal grammar where a single string can be produced by more than one distinct parse tree.