COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
which two statements are true of an interpreter?
A
the translation is done once only and as a separate process
B
when an error is found this is reported and it stops. It pinpoints the error so the programmer knows where it has occurred
C
the program can be easily edited as it always exists as source code
D
the program that is run is already translated into machine code so it can be executed more rapidly
Explanation: 

Detailed explanation-1: -Interpreter does not take up the whole of the source code and goes on converting it into the object code. It basically works on a single instruction at a time and translates it first, and then it proceeds further with the next instruction.

Detailed explanation-2: -The correct answer is Compiler.

Detailed explanation-3: -A compiler translates the entire source code in a single run. An interpreter translates the entire source code line by line. It consumes less time i.e., it is faster than an interpreter. It consumes much more time than the compiler i.e., it is slower than the compiler.

Detailed explanation-4: -Programs that use compilers to translate their code can sometimes run faster than interpreted code. A compiler keeps source code contained and private from end-users, which can be especially beneficial for programs that use commercial code. More items •26-Jan-2023

There is 1 question to complete.