Which of the following are commonly associated with the compilation process?

Options

  • A. Lexical analysis
  • B. Syntax analysis
  • C. Code generation
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

D. More than one of the above

Detailed Explanation

Correct Answer: D — More than one of the above.

Explanation: Lexical analysis, syntax analysis and code generation are all common stages in a compiler. Other stages may include semantic analysis, intermediate-code generation, optimization and symbol-table management.