Lexical Analysis Quiz | Lexical Analysis Multiple Choice Questions and Answers
Questions
2
Object program is a
Answer: Translation of high-level language into machine language
⭐ Make GKSeries Your Preferred Source on Google
Add GKSeries as Preferred Source
3
The symbol table implementation is based on the property of locality of reference is
Answer: Hash Table
4
What goes over the characters of the lexeme to produce a value?
Answer: Scanner
7
When expression sum=3+2 is tokenized then what is the token category of 3
Answer: Integer Literal
8
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?
Answer: Scanner
9
A programmer, by mistake, writes an instruction to divide, instead of a multiply, such error can be detected by a/an
Answer: None of these
10
A system program that set-up an executable program in main memory ready for execution is
Answer: loader
11
A compiler is a program that
Answer: accepts a program written in a high level language and produces an object program.
12
The process of forming tokens from an input stream of characters is called_____
Answer: Tokenization
13
In an aboslute loading scheme, which loader function is accomplished by programmer?
Answer: both (A) and (B)
14
Advantage of using assembly language rather than machine language is that
Answer: All of these
15
Language which have many types, but the type of every name and expression must be calculated at compile time are
Answer: strongly-type languages
16
Advantage of incorporating the macro-processor into pass 1 is that
Answer: all of these
17
Which of the following is a phase of a compilation process ?
Answer: Both (a) and (b)
18
A simple two-pass assembler does which of the following in the first pass ?
Answer: All of these
20
Assembler is a program that
Answer: automates the translation of assembly language into machine language