CBSE Class 11 Computer Science Question 93 of 106

Computer System Organization — Question 54

Back to all questions
54
Question

Question 54

Explain the following:

(a) Assembler

(b) Compiler

(c) Interpreter

Answer

(a) Assembler — Assembler is used to translate the program written in assembly language into machine code. The input of assembler is a source program that contains assembly language called mnemonics. The output generated by the assembler is the object code or machine code which is understandable by the computer.

(b) Compiler — The language processor that translates the complete source program as a whole in one go into machine code is called compiler.

(c) Interpreter — The language processor that translates a single statement of source program into machine code and executes it immediately before moving on to the next line is called interpreter. If there is an error in the statement, the interpreter terminates its translating process at that statement and displays an error message.