In: Computer Science
A language that is interpretted can be distinguished from a purely compiled language in that... (select all that apply)
a |
it requires another program to run the source code at run time. |
|
b |
the source code is translated into another language. |
|
c |
the source code can be used, unmodified, to run the program. |
|
d |
interpretted code can be run directly on the CPU, generally. |
Answer) (A) Option (A) is correct
It requires another program to run the source code at run time.
In the case of Interpreted language code is executed line by line. It makes use of another program called interpreter is used to read and execute the code. Whereas, in the case of Complied languages directly convert the code into machine code with the help of the target machine and do not require a different program.
Option (b) is incorrect. Because the interpreted code is executed with the help of interpreter which executes convert the code into instruction and then executes it line by line. Whereas in case of compiled language convert the code into machine language which processor can understand and can execute directly.
Option (c) is also incorrect because we can modify the interpreted code as it is executed line by line so we can make modify the code in between in case of an interpreted language. This is not possible in case of compiled language which is executed in one go.
Option (d) is also incorrect because interpreted code can not run directly on the CPU because it is executed line by line. Whereas, compiled code can run directly on the CPU