SYNTAX ANALYSIS
ROLE OF THE PARSER
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
No
|
|
Yes
|
|
Depends on the Compiler
|
|
None of the above
|
Detailed explanation-1: -3) Does the compiler program translate the whole source code in one step? Explanation: The compiler is that program which translates the whole high-level code into the machine code at once.
Detailed explanation-2: -There are three steps: translation, compilation (assembly), and link-edit. Figure 1 shows these 3 steps. (Translator input) is the file that contains your source program.
Detailed explanation-3: -The correct answer is Compiler.
Detailed explanation-4: -A compiler converts the source code to bytecode, an intermediary code that bridges the gap between the high-level source code and low-level machine code. The compiler is a special type of program that translates statements in the source code to bytecode, machine code or another programming language.