1.

__________ a part of a compiler that takes as input a stream of characters and produces as output a stream of words along with their associated syntactic categories.(a) Parser(b) Optimizer(c) Scanner(d) None of the mentionedThis question was addressed to me at a job interview.My enquiry is from The NFA with epsilon-moves to the DFA-2 in section Finite Automata and Regular Expression of Compiler

Answer»

Correct choice is (C) SCANNER

Explanation: A compiler’s scanner reads an INPUT stream that consists of characters and produces an OUTPUT stream that contains words, each labelled with its Syntactic category.



Discussion

No Comment Found

Related InterviewSolutions