

MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.
1. |
A_________IS_A_STRING_OF_CHARACTERS_WHICH_FORM_A_SYNTACTIC_UNIT.?$ |
A. | Lexeme |
B. | Lex |
C. | Lexeme & Lex |
D. | None of the mentioned |
Answer» B. Lex | |
2. |
WHICH_ONE_IS_A_TYPE_OF_LEXEME?$ |
A. | Identifiers |
B. | Constants |
C. | Keywords |
D. | All of the mentioned |
Answer» E. | |
3. |
Lexical Analysis Identifies Different Lexical Units in a ______? |
A. | Source Code |
B. | Object Code |
C. | Lexeme |
D. | None of the mentioned |
Answer» B. Object Code | |
4. |
Input to Lexical Analyser is |
A. | Source Code |
B. | Object Code |
C. | Lexeme |
D. | None of the mentioned |
Answer» B. Object Code | |
5. |
Which phase of the compiler is Lexical Analyser? |
A. | First |
B. | Second |
C. | Third |
D. | None of the mentioned |
Answer» B. Second | |
6. |
Lexical Analyser’s Output is given to Syntax Analysis.$ |
A. | True |
B. | False |
Answer» B. False | |
7. |
An individual token is called ________ |
A. | Lexeme |
B. | Lex |
C. | Lexeme & Lex |
D. | None of the mentioned |
Answer» B. Lex | |
8. |
Another Name for Lexical Analyser |
A. | Linear Phase |
B. | Linear Analysis |
C. | Scanning |
D. | All of the mentioned |
Answer» E. | |
9. |
The context free grammar is ambiguous if |
A. | The grammar contains non-terminals |
B. | Produces more than one parse tree |
C. | Production has two non-terminals side by side |
D. | None of the mentioned |
Answer» C. Production has two non-terminals side by side | |
10. |
In a compiler the module that checks every character of the source text is called |
A. | The code generator |
B. | The code optimizer |
C. | The lexical analyzer |
D. | The syntax analyzer |
Answer» B. The code optimizer | |