adplus-dvertising
frame-decoration

Question

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 mentioned

Posted under Systems Programming

Answer: (a).Source program, tokens

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The lexical analyzer takes_________as input and produces a stream of_______as output.

Similar Questions

Discover Related MCQs

Q. Parsing is also known as

Q. __________ 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.

Q. _________an IR-to-IR transformer that tries to improve the IR program in some way.

Q. _________a phase of a compiler that maps the IR program into the instruction set and the finite resources of the target machine.

Q. In a compiler the module that checks every character of the source text is called

Q. The context free grammar is ambiguous if

Q. Another Name for Lexical Analyser

Q. An individual token is called ________.

Q. Which phase of the compiler is Lexical Analyser?

Q. Input to Lexical Analyser is

Q. Lexical Analysis Identifies Different Lexical Units in a _______.

Q. Which one is a type of Lexeme ?

Q. A________ is a string of characters which form a syntactic unit.

Q. When expression sum=3+2 is tokenized then what is the token category of 3 ?

Q. Two Important lexical categories are

Q. It has encoded within it information on the possible sequences of characters that can be contained within any of the tokens it handles.
Above motioned function is performed by?

Q. What goes over the characters of the lexeme to produce a value?

Q. Which one is a lexer Generator ?

Q. Which of the lexical analyser can handle Unicode ?

Q. The output of a lexical analyzer is