MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ORGANIZATION

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which translator will create the fastest running program, provided all other things are equal?
A
Interpreter
B
Bytecode on a virtual machine
C
Compiler
D
None of the above
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: -An interpreter translates code like a compiler but reads the code and immediately executes on that code, and therefore is initially faster than a compiler.

Detailed explanation-3: -Compilers have several advantages: Compiled programs run quickly, since they have already been translated. A compiled program can be supplied as an executable file.

Detailed explanation-4: -A compiler takes a lot of time to analyze the source code. However, the overall time taken to execute the process is much faster. An interpreter does not generate an intermediary code. Hence, an interpreter is highly efficient in terms of its memory.

There is 1 question to complete.