FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Translates source code into machine code one line at a time.
A
Compiler
B
Interpreter
C
Editor
D
Assembler
Explanation: 

Detailed explanation-1: -Detailed Solution. The correct answer is Compiler. A compiler takes the program code (source code) and converts the source code to a machine language module (called an object file).

Detailed explanation-2: -Interpreter: An interpreter translates the code line by line when the program is running.

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: -A compiler is a special program that translates a programming languageā€™s source code into machine code, bytecode or another programming language. The source code is typically written in a high-level, human-readable language such as Java or C++.

Detailed explanation-5: -A compiler translates the entire source code in a single run. An interpreter translates the entire source code line by line. It consumes less time i.e., it is faster than an interpreter. It consumes much more time than the compiler i.e., it is slower than the compiler. It is more efficient.

There is 1 question to complete.