Escolar Documentos
Profissional Documentos
Cultura Documentos
QUESTION BANK
UNIT I
ONE MARK QUESTIONS
1. A translator that takes as input a high level language program and translates into machine
language in one step is known as
a) Compiler b) Interpreter c) Preprocessor
d) Assembler
b) Code optimization
c) Code generator
d) Lexical
3. The lexical analyzer takes_________as input and produces a stream of_______as output.
a) Source program, tokens
c) Either A and B
b) Parsing
c) Relocation
d) Symbol resolution
5. Explain the input buffer scheme for scanning the source program. How the use of
sentinels can improve its performance? Describe in detail.