COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

PROGRAMMING LANGUAGES

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: -The biggest disadvantage is speed. Interpreted code runs slower than compiled code. This is because the interpreter has to analyse and convert each line of source code (or bytecode) into machine code before it can be executed.

Detailed explanation-2: -Disadvantages of Interpreted Languages An interpreter is needed in the local machine to run the program. Executing the program in an interpreter is less efficient than regular program execution. An interpreted language is less secure. Unlike compiled languages, the interpreter does not have an executable file.

Detailed explanation-3: -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-4: -Unlike compiler, interpreter runs as it reads the source code line by line to translate. As interpreter does not generate separate executable file and shares source code across platforms, it makes it insecure and public.

There is 1 question to complete.