FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
An interpreter does not generate machine code directly-it calls appropriate machine code subroutines as the program is interpreter
A
False
B
True
C
Either A or B
D
None of the above
Explanation: 

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.

There is 1 question to complete.