MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPILER DESIGN

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which computer program accepts the high-level language and converts it into assembly language?
A
Interpreter
B
Linker
C
Assembler
D
Compiler
Explanation: 

Detailed explanation-1: -Detailed Solution. 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.

Detailed explanation-2: -A compiler is a computer program that translates a program written in a high-level language to the machine language of a computer. The compiler is used to translate source code into machine code or compiled code.

Detailed explanation-3: -High-level compilers do not convert source code into assembly language. Rather, they convert it into object code/machine code directly. Assembly language is a human-readable version of object/machine code, designed for a programmer.

Detailed explanation-4: -Explanation: Compiler is a computer program that accepts the code written in a high-level language and converts that code into the assembly language.

Detailed explanation-5: -A high-level language requires an interpreter/ compiler for the process of conversion. We perform the conversion of an assembly language into a machine language. We perform the conversion of a high-level language into an assembly language and then into a machine-level language for the computer.

There is 1 question to complete.