Discussion
A grammar is ambiguous when
Answer: A
Correct answer: some sentence of its language has more than one parse tree
Ambiguity is a property of the grammar rather than of the language: it means one sentence can be given two different structures, so the grammar does not determine the meaning. Recursion and multi-symbol right sides are ordinary and harmless; it is the existence of a second tree for one sentence that is the fault.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development