Examveda
Examveda

Which of the following is a phase of a compilation process

A. Lexical analysis

B. Code generation

C. Both of the above

D. Static analysis

E. None of the above

Answer: Option C

Solution(By Examveda Team)

Compiler operates in various phases each phase transforms the source program from one representation to another. Every phase takes inputs from its previous stage and feeds its output to the next phase of the compiler.
There are 6 phases in a compiler. Each of this phase help in converting the high-level langue the machine code. The phases of a compiler are:
I. Lexical analysis
II. Syntax analysis
III. Semantic analysis
IV. Intermediate code generator
V. Code optimizer
VI. Code generator

This Question Belongs to Computer Fundamentals >> Operating System

Join The Discussion

Related Questions on Operating System

Identify false statement

A. You can find deleted files in recycle bin

B. You can restore any files in recycle bin if you ever need

C. You can increase free space of disk by sending files in recycle bin

D. You can right click and choose Empty Recycle Bin to clean it at once