A compiler is software that converts:

2013

A compiler is software that converts:

Answer: B. high-level language to machine languageConceptA compiler is a language-processing program. It analyzes a source program written in a high-level language and translates it into an equivalent target…

  1. A.

    characters to bits

  2. B.

    high-level language to machine language

  3. C.

    machine language to high-level language

  4. D.

    words to bits

Attempted by 152 students.

Show answer & explanation

Correct answer: B

Concept

A compiler is a language-processing program.

It analyzes a source program written in a high-level language and translates it into an equivalent target program, commonly machine or object code.

Application

Here the input is programmer-oriented high-level source code, and the output is machine-oriented code that a processor can execute after the normal build stages.

Contrast

  • characters to bits: character encoding represents symbols as numeric codes; it is not source-program translation.

  • machine language to high-level language: this is the reverse direction associated with decompilation.

  • words to bits: this concerns data representation or encoding, not translation of a program.

Cross-check

Tracing the language-processing flow gives source program → compiler → target program, so the direction is from a high-level language to machine language.

Result

Therefore, the required conversion is high-level language to machine language.

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…