An interpreted language and a compiled language differ in the following ways: a.
ID: 3555569 • Letter: A
Question
An interpreted language and a compiled language differ in the following ways:
a.
A compiled language requires a 2 step process, compiling and executing. An interpreted language requires only 1 step - executing the interpreter.
b.
A compiled language usually executes programs slower than an interpreted language.
c.
A compiled language is more flexible than an interpreted language as it can be executed interactively.
d.
Compiled languages are totally independent of underlying hardware. This is not always the case with ingterpreted languages.
e.
All of the above.
a.
A compiled language requires a 2 step process, compiling and executing. An interpreted language requires only 1 step - executing the interpreter.
b.
A compiled language usually executes programs slower than an interpreted language.
c.
A compiled language is more flexible than an interpreted language as it can be executed interactively.
d.
Compiled languages are totally independent of underlying hardware. This is not always the case with ingterpreted languages.
e.
All of the above.
Explanation / Answer
Correct ans:
A compiled language requires a 2 step process, compiling and executing. An interpreted language requires only 1 step - executing the interpreter.
--------------------------------------------------------------------- Reasons --------------------------------------------------------------
A compiled language is one where the program, once compiled, is expressed in the instructions of the target machine. For example, an addition "+" operation in your source code could be translated directly to the "ADD" instruction in machine code.
An interpreted language is one where the instructions are not directly executed by the the target machine, but instead read and executed by some other program (which normally is written in the language of the native machine). For example, the same "+" operation would be recognised by the interpreter at run time, which would then call its own "add(a,b)" function with the appropriate arguments, which would then execute the machine code "ADD" instruction.
Advantages of compiled languages:
And here are the advantages of interpreted languages:
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.