What do you call the translator which takes assembly language program as input & produce machine language code as output?
The correct answer is Assembler because it translates assembly language instructions into machine language code that can be executed directly by the computer's processor.
- Assembly Language: It uses human-readable mnemonics such as
MOV,ADD, andSUBinstead of binary code. - Role of an Assembler: An assembler converts these mnemonics into their corresponding machine-language instructions.
- Why Assembler is Correct: It is specifically designed to translate assembly language programs into machine code.
- Why Other Options Are Incorrect:
- Compiler translates high-level programming languages into machine code or intermediate code.
- Interpreter executes high-level language statements one by one without producing a separate machine-code file.
- Debugger is used to find and fix errors in programs; it does not perform translation.
- compiler is incorrect because a compiler translates high-level programming languages (like C++ or Java) into machine code or intermediate object files all at once.
- interpreter is incorrect because an interpreter parses and runs high-level code instructions sequentially line-by-line in real time, rather than assembling low-level mnemonic sheets.
- linker is incorrect because a linker is a build utility that bundles together separate compiled object code files and libraries into a single final executable binary file.
“]