DocMCQs Educational Banner

What do you call the translator which takes assembly language program as input & produce machine language code as output?

A. Compiler
B. Interpreter
C. Debugger
D. Assembler
Correct Answer: D. Assembler
Explanation:


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, and SUB instead 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.




$s machine code equivalent that the CPU architecture can natively execute.
  • Incorrect Options:
    • 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.
  • “]

    If you think there is any confusion in given MCQS You can comment.

    Follow us on WhatsApp

    Drop of Change Academy is Pakistan No.1 online Plate form to prepare all types of Exams including PPSC, FPSC, KPSC, SPSC, Ministry of Defence, And for all one paper MCQS , Pedagogy MCQS, docmcqs  general knowledge MCQS, current affair MCQS and alot more

     

     

    Leave a Comment

    Your email address will not be published. Required fields are marked *

    Join Our WhatsApp Channel ×
    Scroll to Top