Select the true statement for compiler.

Options

  • A. The input of the compiler is source program.
  • B. It translates the source code into object code as a whole.
  • C. The output of the compiler is object code.
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

D. More than one of the above

Detailed Explanation

Correct Answer: D — More than one of the above.

Explanation: Statements A, B and C are generally true for a traditional compiler that translates a source program into object code. A compiler may also generate assembly code, intermediate code or other target representations, depending on its design.