MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPILER DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Compiler should report the presence of ____ in the source program, in translation process
A
object
B
code
C
error
D
classes
Explanation: 

Detailed explanation-1: -Explanation: Compiler should report the presence of errors in the source program, in translation process.

Detailed explanation-2: -A compiler is a special program that translates a programming languageā€™s source code into machine code, bytecode or another programming language.

Detailed explanation-3: -Which of the following errors can a compiler check? Explanation: Compiler can only check syntax errors.

Detailed explanation-4: -18) Which phase of the compiler checks the grammar of the programming? Explanation: The phase of the compiler next to the lexical analysis phase is also known as Parser. Syntax analysis or parser accepts the tokens produced by the lexical analysis and gives the parse tree in the output.

Detailed explanation-5: -Compilers translate code all at once and the processor then executes upon the machine language that the compiler produced. If changes are made to the code after compilation, the changed code will need to be compiled and added to the compiled code (or perhaps the entire program will need to be re-compiled.)

There is 1 question to complete.