COMPUTER PROGRAMMING FUNDAMENTALS
PROGRAMMING LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
False
|
|
True
|
|
Either A or B
|
|
None of the above
|
Detailed explanation-1: -An Interpreter directly executes instructions written in a programming or scripting language without previously converting them to an object code or machine code.
Detailed explanation-2: -Both compiler and interpreters do the same job which is converting higher level programming language to machine code. However, a compiler will convert the code into machine code (create an exe) before program run. Interpreters convert code into machine code when the program is run.
Detailed explanation-3: -The compiler or interpreter will take the source code and translate it into the machine code that can be executed by the processor. Machine translation is the process of translating one language into another using a computer.
Detailed explanation-4: -Compiler. Compilers are used to translate a program written in a high-level language into machine code (object code). Once compiled (all in one go), the translated program file can then be directly used by the computer and is independently executable.