1.

The lexical analyzer takes _________ as input and produces a stream of _______ as output.(a) Source program, tokens(b) Token, source program(c) Either of the two(d) None of the mentionedThis question was addressed to me in homework.The query is from Lexical Analysis topic in division Compiler Introduction of Compiler

Answer»

The CORRECT answer is (a) SOURCE program, tokens

The best I can explain: As per the definition of Lexical Analyser which states that lexical ANALYSIS is the process of converting a sequence of characters into tokens.



Discussion

No Comment Found

Related InterviewSolutions