COMPILER DESIGN

INTRODUCTION TO COMPILER DESIGN

TYPES OF COMPILERS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Compilers, interpreters and assemblers are translation programs:
A
used for HLL and LLL
B
Compilers and Interpreters are used for HLL instead the assembler is used for LLL
C
they are used only for LLL
D
None of the above
Explanation: 

Detailed explanation-1: -The correct answer is Compiler. It is a program that translates a source program written in some high-level programming language into machine code for some computer architecture. In simple language, it converts high-level language into machine language.

Detailed explanation-2: -Assemblers are a third type of translator. The purpose of an assembler is to translate assembly language into object code. Whereas compilers and interpreters generate many machine code instructions for each high-level instruction, assemblers create one machine code instruction for each assembly instruction.

Detailed explanation-3: -A program that converts a high-level language source file into a machine-language file is called a compiler.

There is 1 question to complete.