Machine-translated by Google. Questions are authored in English.
Top

Discussion

What are the stages in the compilation process?

  • A.Feasibility study, system design and testing
  • B.Implementation and documentation
  • C.Lexical Analysis, syntax analysis, and code generation
  • D.None of the above

Answer: C

Correct answer: Lexical Analysis, syntax analysis, and code generation

A compiler works in phases: lexical analysis breaks the source into tokens, syntax analysis checks that they form valid constructions and builds a parse tree, and code generation produces the target code - with semantic analysis and optimisation in between. The other options describe the stages of a systems development project, not of compilation.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.