Which translator converts an assembly language program into machine language code?

An assembler is a language translator that converts a program written in assembly language into machine language or machine code that a computer's processor can understand and execute. 
Assembly language uses symbolic instructions and meaningful names, known as mnemonics, instead of... Read More

1 PROGRAMMING MCQS

Which translator converts an assembly language program into machine language code?

  • Compiler
  • Interpreter
  • Debugger
  • Assembler
Correct Answer: A. Compiler

Detailed Explanation

An assembler is a language translator that converts a program written in assembly language into machine language or machine code that a computer's processor can understand and execute. 


Assembly language uses symbolic instructions and meaningful names, known as mnemonics, instead of writing binary machine instructions directly. For example, instructions such as MOV, ADD, and SUB can represent operations performed by the processor. The assembler translates these symbolic instructions into corresponding machine code.


The resulting machine code consists of instructions represented in a form that the processor can execute directly. Assemblers may also handle labels, symbolic addresses, and other features that make assembly programming easier.


A compiler translates programs written in a high-level programming language into machine code or another lower-level representation. An interpreter generally translates and executes high-level program instructions during runtime. A debugger is a development tool used to find and analyze errors in programs; it is not a language translator.


Key Points:



  • Assembler → Assembly Language → Machine Code 

  • Assembly language uses symbolic instructions called mnemonics.

  • Compiler → High-level language → Lower-level/machine code

  • Interpreter → Translates and executes program instructions

  • Debugger → Helps find and analyze programming errors

Discussion

No comments yet. Be the first to share your thoughts!

Leave a Comment