A computer program that converts a high-level language program into an…

2023

A computer program that converts a high-level language program into an equivalent machine language program is called

Answer: B. compilerConceptLanguage processors translate programs from one representation to another while preserving the program’s intended computation. A compiler accepts…

  1. A.

    assembler

  2. B.

    compiler

  3. C.

    loader

  4. D.

    More than one of the above

  5. E.

    None of the above

Attempted by 1073 students.

Show answer & explanation

Correct answer: B

Concept

Language processors translate programs from one representation to another while preserving the program’s intended computation.

A compiler accepts source written in a high-level language and produces lower-level target code, commonly object or machine code. An assembler starts from assembly language, whereas a loader prepares an executable for running.

Application

The stem starts with a high-level language program and asks for the program that produces equivalent machine-language code. That input–output role is the defining role of a compiler, so the saved value “compiler” is the best-supported choice.

Contrast

  • An assembler translates assembly-language mnemonics into object or machine code; its input is not a high-level language.

  • A loader places an already translated executable into memory and prepares it for execution; it does not translate source language.

  • “More than one of the above” would require at least two listed software types to perform the stated high-level-to-machine translation.

  • “None of the above” would require every listed software type to fall outside the stated role.

Cross-check

Following a typical toolchain gives high-level source → compiler → object or machine code → linker/loader → execution. This independently places the compiler at the translation step described in the stem.

Explore the full course: Btsc Lab Assistant

Loading lesson…