ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
Which of the following statements about COMPILERS is TRUE?
|
Each line of the program needs to be translated each time it is run
|
|
Enables programs to be easily re-edited
|
|
Outputs the finished code into a complete machine code program
|
|
Each time an error is encountered, it stops the program and reports it
|
Explanation:
Detailed explanation-1: -Object code is usually produced by a compiler that reads some higher level computer language source instructions and translates them into equivalent machine language instructions. Hence the correct answer is Object code.
Detailed explanation-2: -object code: The output of the compiler, after translating the program.
Detailed explanation-3: -The correct answer is Interpreter. A computer program that translates one program’s instructions at a time into machine language is called an Interpreter.
There is 1 question to complete.