Describe the function of a compiler and an interpreter.

What will be an ideal response?


Each programming language uses a piece of software, called a compiler or an interpreter, to translate your program code into machine language. Machine language is also called binary language, and is represented as a series of 0s and 1s. The compiler or interpreter that translates your code tells you if any programming language component has been used incorrectly. Syntax errors are relatively easy to locate and correct because the compiler or interpreter you use highlights every syntax error. If you write a computer program using a language such as C++ but spell one of its words incorrectly or reverse the proper order of two words, the software lets you know that it found a mistake by displaying an error message as soon as you try to translate the program.

Computer Science & Information Technology

You might also like to view...

Which of the following statements is false?

a. Exception handling enables programmers to write robust and fault-tolerant programs. b. Exception handling can catch but not resolve exceptions. c. Exception handling can resolve exceptions. d. All of the above are true.

Computer Science & Information Technology

Which key combination is used to open a new tab in Google Chrome?

a. Ctrl + T b. Ctrl + N c. Shift + N

Computer Science & Information Technology

What does the top row of the table body usually contain which helps to identify the contents of the columns?

A) Column headers B) Column guides C) Column titles D) Table headers

Computer Science & Information Technology

What part of a laser printer should you be concerned about disposal?

A) Toner B) Conditioning roller C) Misfed paper D) Paper debris

Computer Science & Information Technology