1.

If the lexical analyser finds a lexeme with the same name as that of a reserved word,it _________(a) overwrites the word(b) overwrites the functionality(c) generates an error(d) something elseI had been asked this question by my college professor while I was bunking the class.Enquiry is from Lexical Analysis topic in division Regular Expressions and Languages of Automata Theory

Answer»

The correct CHOICE is (c) generates an error

To explain I would say: RESERVED words are known as keywords and they are specific and reserved with its functionality to a language. THUS, GETTING an input with the same name by the analyzer will GENERATE an error.



Discussion

No Comment Found

Related InterviewSolutions