Which term refers to a property of a formal grammar where a single string can be produced by more than one distinct parse tree?
Difficulty: Hard
About this MCQ
This Hard Compiler Design MCQ checks one syllabus fact.
The question is: “Which term refers to a property of a formal grammar where a single string can be produced by more than one distinct parse tree?”
The accepted answer is D. Grammar ambiguity. Grammar ambiguity is the person body or term that satisfies Which term refers to a property of a formal grammar where a single string can be produced by more than one distinct parse tree option D Option A Just-in-time JIT compilation does not match the stem it is a near-miss used to catch incomplete recall of Grammar ambiguity Option B Loader does not match the stem it is a near-miss used to catch incomplete recall of Grammar ambiguity Remaining alternatives Type checking fall outside the same rule and should be eliminated once Grammar ambiguity is identified Compiler Design questions of this type reward precise definitions rather than approximate associations Compiler Design recall of this distinction is a regular item in.
- A. Just-in-time (JIT) compilation
Why not A: “Just-in-time (JIT) compilation” is not correct. The accepted answer is D. Grammar ambiguity. Grammar ambiguity is the person body or term that satisfies Which term refers to a property of a formal grammar where a single string can be produced by more than one distinct pars
- B. Loader
Why not B: “Loader” is not correct. The accepted answer is D. Grammar ambiguity. Grammar ambiguity is the person body or term that satisfies Which term refers to a property of a formal grammar where a single string can be produced by more than one distinct pars
- C. Type checking
Why not C: “Type checking” is not correct. The accepted answer is D. Grammar ambiguity. Grammar ambiguity is the person body or term that satisfies Which term refers to a property of a formal grammar where a single string can be produced by more than one distinct pars
- D. Grammar ambiguity ✓
Correct answer
D. Grammar ambiguity
Explanation
Grammar ambiguity is the person body or term that satisfies Which term refers to a property of a formal grammar where a single string can be produced by more than one distinct parse tree option D Option A Just-in-time JIT compilation does not match the stem it is a near-miss used to catch incomplete recall of Grammar ambiguity Option B Loader does not match the stem it is a near-miss used to catch incomplete recall of Grammar ambiguity Remaining alternatives Type checking fall outside the same rule and should be eliminated once Grammar ambiguity is identified Compiler Design questions of this type reward precise definitions rather than approximate associations Compiler Design recall of this distinction is a regular item in.
Source: Compiler Design Official Reference Guide
Tags: computer science, compiler design, compilers, programming languages
Submitted by: MCQsHub Editorial
Related MCQs
- The following statement describes a specific concept. What is it called? a parsing strategy that builds a pars...
- What is the name for the use of regular expressions by a lexical analyzer to define and recognize valid tokens...
- What is Bottom-up parsing primarily used for?
- Which of the following best describes Lexical pattern matching?
- Which concept is defined as follows: a parsing strategy that builds a parse tree starting from the input token...
- Identify the correct concept described as: a technique that compiles code into machine instructions at runtime...