MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Compilers knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which of the following are Lexemes? |
| A. | Identifiers |
| B. | Constants |
| C. | Keywords |
| D. | All of the mentioned |
| Answer» E. | |
| 2. |
Which concept of grammar is used in the compiler? |
| A. | Lexical analysis |
| B. | Parser |
| C. | Code generation |
| D. | Code optimization |
| Answer» C. Code generation | |
| 3. |
Which concept of FSA is used in the compiler? |
| A. | Lexical analysis |
| B. | Parser |
| C. | Code generation |
| D. | Code optimization |
| Answer» B. Parser | |
| 4. |
What is an Object program? |
| A. | Program written in machine language |
| B. | Program to be translated into machine language |
| C. | Translation of high-level language into machine language |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 5. |
Which of the following is true for operator precedence parsing? |
| A. | For all pair of non-terminal |
| B. | For all pair of non-terminals |
| C. | To delimit the handle |
| D. | None of the mentioned |
| Answer» B. For all pair of non-terminals | |
| 6. |
Which symbol table implementation is based on the property of locality of reference? |
| A. | Linear list |
| B. | Search tree |
| C. | Hash Table |
| D. | Self Organisation |
| Answer» D. Self Organisation | |
| 7. |
What is the output of lexical analyzer? |
| A. | A set of RE |
| B. | Syntax Tree |
| C. | Set of Tokens |
| D. | String Character |
| Answer» D. String Character | |