 
			 
			MCQOPTIONS
 Saved Bookmarks
				This section includes 8 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. | Lexical Analyser s Output is given to Syntax Analysis. | 
| A. | True | 
| B. | False | 
| Answer» B. False | |
| 6. | What is another name for Lexical Analyser? | 
| A. | Linear Phase | 
| B. | Linear Analysis | 
| C. | Scanning | 
| D. | All of the mentioned | 
| Answer» E. | |
| 7. | 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 | |
| 8. | 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 | |