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. |
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. |
What is the output of lexical analyzer? |
| A. | A set of regular expression |
| B. | Syntax tress |
| C. | Set of Token |
| D. | String of Characters |
| Answer» D. String of Characters | |
| 6. |
An intermediate code form is __________ |
| A. | Postfix notation |
| B. | Syntax Trees |
| C. | Three Address code |
| D. | All of the mentioned |
| Answer» E. | |
| 7. |
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 | |
| 8. |
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 | |