 
			 
			MCQOPTIONS
 Saved Bookmarks
				This section includes 9 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.
| 1. | An optimizing compiler __________ | 
| A. | Is optimized to occupy less space | 
| B. | Is optimized to take less time for execution | 
| C. | Optimized the code | 
| D. | None of the mentioned | 
| Answer» D. None of the mentioned | |
| 2. | What is garbage? | 
| A. | Unallocated storage | 
| B. | Allocated storage whose access paths are destroyed? | 
| C. | Allocated storage | 
| D. | Uninitialized storage | 
| Answer» C. Allocated storage | |
| 3. | A bottom up parser generates __________ | 
| A. | Right most derivation | 
| B. | Right most derivation in reverse | 
| C. | Left most derivation | 
| D. | Left most derivation in reverse | 
| Answer» C. Left most derivation | |
| 4. | Shift reduce parsers are __________ | 
| A. | Top down parser | 
| B. | Bottom up parser | 
| C. | Maybe both | 
| D. | None of the mentioned | 
| Answer» C. Maybe both | |
| 5. | Which of the following is used for grouping of characters into tokens? | 
| A. | Parser | 
| B. | Code optimization | 
| C. | Code generator | 
| D. | Lexical analyser | 
| Answer» E. | |
| 6. | Which of the following actions an operator precedence parser may take to recover from an error? | 
| A. | Insert symbols onto the stack | 
| B. | Delete symbols from the stack | 
| C. | Inserting or deleting symbols from the input | 
| D. | All of the mentioned | 
| Answer» E. | |
| 7. | An intermediate code form is __________ | 
| A. | Postfix notation | 
| B. | Syntax Trees | 
| C. | Three Address code | 
| D. | All of the mentioned | 
| Answer» E. | |
| 8. | Inherited attribute is a natural choice in __________ | 
| A. | Tracking declaration of a variable | 
| B. | Correct use of L and R values | 
| C. | All of the mentioned | 
| D. | None of the mentioned | 
| Answer» B. Correct use of L and R values | |
| 9. | DAG representation of a basic block allows __________ | 
| A. | Automatic detection of local common sub expressions | 
| B. | Detection of induction variables | 
| C. | Automatic detection of loop variant | 
| D. | None of the mentioned | 
| Answer» B. Detection of induction variables | |