Compiler Design Questions and Answers
1. |
Compiler translates the source code to |
|
- A. Executable code
- B. Machine code
- C. Binary code
- D. Both B and C
|
2. |
Which of the following groups is/are token together into semantic structures? |
|
- A. Syntax analyzer
- B. Intermediate code generation
- C. Lexical analyzer
- D. Semantic analyzer
|
3. |
Compiler should report the presence of __________ in the source program, in translation process. |
|
- A. Classes
- B. Objects
- C. Errors
- D. Text
|
4. |
What is the output of lexical analyzer? |
|
- A. A parse tree
- B. A list of tokens
- C. Intermediate code
- D. Machine code
|