MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPILER DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
How many parts of compiler are there?
A
1
B
2
C
6
D
7
Explanation: 

Detailed explanation-1: -A compiler consists of three main parts:the frontend, the middle-end, and the backend. The front end checks whether the program is correctly written in terms of the programming language syntax and semantics.

Detailed explanation-2: -There are two phases of the compilation process: Analysis: It breaks up the source code/program into small parts and creates an intermediate representation of the source program. Synthesis phase: It takes the intermediate representation of the source program as input and creates the desired target code/program.

Detailed explanation-3: -Broadly, there are three types of Compilers: Single Pass Compilers. Two Pass Compilers. Multi pass Compilers.

Detailed explanation-4: -There are 6 phases in the compiler, namely, lexical analysis, syntax analysis, semantics analysis, intermediate code generation, code optimization, and code generation.

There is 1 question to complete.