Compilers vs other translators: identify the translator that reads an entire high-level program and converts it to machine code.

Difficulty: Easy

Correct Answer: compiler

Explanation:


Introduction / Context:
High-level language programs must be translated into machine language before execution. Different translators perform this in different ways. This question targets recognition of the tool that processes the entire source to produce an object or executable module.


Given Data / Assumptions:

  • Source code is written in a high-level language.
  • Goal is conversion to machine code.
  • Distinguish compiler vs assembler vs generic terms.


Concept / Approach:

  • A compiler translates the whole high-level program to target code (object/executable).
  • An assembler translates assembly to machine code.
  • “Translator” is generic; “system software” is a broad category, not a specific translator.


Step-by-Step Solution:

Match definition: entire high-level program → machine code ⇒ compiler.Eliminate others based on their scope/category.


Verification / Alternative check:

Consider typical build flow: HLL → compiler → object; ASM → assembler; loader/linker finalizes execution image.


Why Other Options Are Wrong:

  • assembler: Works on assembly, not high-level languages.
  • translator: Too generic; does not specify compilation.
  • system software: Category that includes OS, compilers, loaders—too broad.
  • None of the above: Incorrect since “compiler” fits exactly.


Common Pitfalls:

  • Confusing interpreter (executes line-by-line) with compiler (batch translation).


Final Answer:

compiler

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion