FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
____ takes one statement from high level language at a time and translates it into machine code
A
Compiler
B
Loader
C
Linker
D
Interpreter
Explanation: 

Detailed explanation-1: -1)Compiler-A compiler translates a program written in high level language into machine language. The compiler takes the whole program at a time and produces the equivalent machine code.

Detailed explanation-2: -A compiler is a translator program that converts a high-level language source program into a machine language object program.

Detailed explanation-3: -A compiler is a computer program that translates a program written in a high-level language to the machine level language of a computer. Everything is translated and compiled once by the compiler, and then can be used many times afterwards.

Detailed explanation-4: -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.

Detailed explanation-5: -[i] Some examples of programming languages that use interpreters are Python, Ruby, Perl, and PHP. An assembler translates a program written in assembly language into machine language and is effectively a compiler for the assembly language, but can also be used interactively like an interpreter.

There is 1 question to complete.