FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

PROGRAMMING LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which language translator produces Object Code and an Error Report?
A
Code Translation
B
Compiler
C
Interpreter
D
None of the above
Explanation: 

Detailed explanation-1: -Assembler. Assemblers are used to translate a program written in a low-level assembly language into a machine code (object code) file so it can be used and executed by the computer.

Detailed explanation-2: -A translator is a program that converts source code into object code. Generally, there are three types of translator: compilers. interpreters. assemblers.

Detailed explanation-3: -The Assembler is used to translate the program written in Assembly language into machine code. The source program is an input of an assembler that contains assembly language instructions. The output generated by the assembler is the object code or machine code understandable by the computer.

Detailed explanation-4: -The compiler is a language processor that reads the complete source code written in a high-level language and translates it into an equivalent object code as a whole. Typically, this object code is stored in a file.

Detailed explanation-5: -Interpreters have several advantages: Instructions are executed as soon as they are translated. Errors can be quickly spotted-once an error is found, the program stops running and the user is notified at which part of the program the interpretation has failed.

There is 1 question to complete.