COMPUTER FUNDAMENTALS

COMPUTER SOFTWARE

SYSTEM SOFTWARE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What reads the whole high-level code and if there are no errors, translates it into complete machine code which is output as a new file?
A
Compiler
B
Interpreter
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -A compiler is a special program that translates a programming languageā€™s source code into machine code, bytecode or another programming language.

Detailed explanation-2: -A compiler takes the source code as a whole and translates it into object code all in one go.

Detailed explanation-3: -A compiler translates the entire program written in a high-level language to machine language prior to execution. An interpreter translates a program line by line during execution.

Detailed explanation-4: -Interpreter-It is a computer program that directly executes instructions written in a programming or scripting language, without requiring them previously to have been compiled into a machine language program.

Detailed explanation-5: -A compiler is a computer program that translates a program written in a high-level language to the machine level language of a computer.

There is 1 question to complete.