COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
ASSEMBLER
|
|
INTERPRETER
|
|
COMPILER
|
|
None of the above
|
Detailed explanation-1: -Compiler transforms code written in a high-level programming language into the machine code at once before the program runs, whereas an Interpreter converts each high-level program statement, one by one, into the machine code, during program run. Compiled code runs faster, while interpreted code runs slower.
Detailed explanation-2: -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-3: -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-4: -Interpreter: An interpreter translates the code line by line when the program is running.
Detailed explanation-5: -To get from source code to machine language, the programs must be transformed by a compiler. The compiler produces an intermediary form called object code. Object code is often the same as or similar to a computer’s machine language.