1.

To derive a string using the production rules of a given grammar, we use:(a) Scanning(b) Parsing(c) Derivation(d) All of the mentionedThis question was addressed to me in an online interview.This intriguing question comes from Applications in chapter Context Free Grammars and Languages of Automata Theory

Answer»

The CORRECT choice is (b) Parsing

To explain: Parsing is required to check the ACCEPTABILITY of a string. Further, comes the SYNTACTICAL PHASE which is taken care by other phases of compiler.



Discussion

No Comment Found

Related InterviewSolutions