Skip to content

Compiler Design

What does Grammar ambiguity refer to?

Difficulty: Hard

About this MCQ

This Hard Compiler Design MCQ checks one syllabus fact.

The question is: “What does Grammar ambiguity refer to?”

The accepted answer is C. A property of a formal grammar where a single string can be produced by more than one distinct parse tree.. Grammar ambiguity refers to a property of a formal grammar where a single string can be produced by more than one distinct parse tree.

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.

Source: Compiler Design Official Reference Guide

Tags: computer science, compiler design, compilers, programming languages

Submitted by: MCQsHub Editorial

Related MCQs

More Compiler Design MCQs