Which of the following converts high level language into machine language ?

Compiler
Interpreter
Assembler
None of these

The correct answer is (a) Compiler.

A compiler is a computer program that translates code written in a high-level programming language (source code) into another computer language (target code), usually a machine code language or bytecode. The generated code can then be executed by a computer without further compilation.

An interpreter is a computer program that reads source code written in a high-level programming language and executes it directly. Interpreters do not generate machine code. Instead, they translate each statement in the source code into a series of machine code instructions that are then executed immediately. This makes interpreters slower than compilers, but it also makes them easier to develop and debug.

An assembler is a program that translates assembly language into machine code. Assembly language is a low-level programming language that is specific to a particular computer architecture. Assemblers are used to create machine code that can be executed directly by the computer.

Therefore, the correct answer is (a) Compiler.

Exit mobile version