Information Systems and Computer Applications CLEP Prep Practice Exam

Disable ads (and more) with a membership for a one time $2.99 payment

Question: 1 / 50

What is the purpose of a compiler?

To translate one programming language to another

To translate programming language code into machine language

A compiler's purpose is not to translate one programming language to another, that is the role of a language converter or translator. It also does not convert text into binary code, that is the job of an assembler. While some compilers do perform error checking, that is not their primary purpose. The main purpose of a compiler is to translate programming language code into machine language, which can then be understood and executed by the computer. This allows programmers to write code in a high-level language that is easier for them to understand and then have it translated into instructions that the computer can understand and execute.

To convert text into binary code

To check for errors in code

Next

Report this question