COMPUTER SCIENCE AND ENGINEERING
THEORY OF COMPUTATION
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]


generate an inherently ambiguous language


generate an ambiguous language but not inherently so


are unambiguous


can generate all possible fixed length valid computation for carrying out addition, subtraction, multipication and division, which can be expressed in one expression

Detailed explanation1: Since there exists at least one unambiguous grammar which generates language L. Therefore, L is not an inherently ambiguous language.
Detailed explanation2: b) Non removable ambiguity (or inherent ambiguity) : This is the situation when every grammar that generates a given language, say L, is ambiguous then we say the language is inherently ambiguous..
Detailed explanation3: 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. If the grammar is not ambiguous, then it is called unambiguous. If the grammar has ambiguity, then it is not good for compiler construction.
Detailed explanation4: Explanation: A context free language for which no unambiguous grammar exists, is called Inherent ambiguous language.