FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of these is NOT a disadvantage of an interpreter?
A
Executes slowly
B
Occupies more space
C
Source code can be modified
D
Initial compilation is slow
Explanation: 

Detailed explanation-1: -Interpreters usually take less amount of time to analyze the source code. However, the overall execution time is comparatively slower than compilers. Compilers usually take a large amount of time to analyze the source code. However, the overall execution time is comparatively faster than interpreters.

Detailed explanation-2: -A compiler takes an entire program and a lot of time to analyze the source code, whereas the interpreter takes a single line of code and very little time to analyze it. A compiled code runs faster while interpreted code runs slower. A compiler displays all errors after compilation.

Detailed explanation-3: -Interpreting code is slower than running the compiled code because the interpreter must analyze each statement in the program each time it is executed and then perform the desired action, whereas the compiled code just performs the action within a fixed context determined by the compilation.

There is 1 question to complete.