Multiple choice

The task(s) of complier is/are ______________.

  1. to convert high level language into machine level language.

  2. to convert high level language into assembly language

  3. to convert assembly language into machine level language

  4. all of these

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The primary definition of a compiler is a program that translates high-level language (HLL) source code into machine-level language (object code). While some compilers may output assembly language as an intermediate step, the ultimate task that distinguishes a compiler from an assembler is the conversion from a high-level abstraction to a machine-executable format. Option C describes an assembler, not a compiler.