WBCS.LIVE practice question

What is the main function of a compiler?

Solve this multiple-choice question and check the correct answer with its explanation below.

Answer options

  1. Converts assembly language to binary code
  2. Converts high-level language to machine code
  3. Converts machine code to high-level code
  4. Converts machine language to assembly code

Correct answer and explanation

Correct answer: Converts high-level language to machine code