1.

State true or false:Statement: The recursive inference procedure determines that string w is in the language of the variable A, A being the starting variable.(a) Statement: The recursive inference procedure determines that string w is in the language of the variable A, A being the starting variable.(b) true(c) falseThis question was addressed to me in an interview for internship.Asked question is from The Language of a Grammar, Inferences and Ambiguity topic in division Context Free Grammars and Languages of Automata Theory

Answer»

Right option is (a) Statement: The recursive INFERENCE procedure determines that string w is in the language of the variable A, A being the starting variable.

To explain I WOULD say: We apply the productions of CFG to infer that certain STRINGS are in the language of a certain variable.



Discussion

No Comment Found

Related InterviewSolutions