In programming, some languages are compiled and others are interpreted. Define the difference between the two.

An interpreter translates a program into machine code one line at a time. A compiler, however, scans the entire document and translates it into machine code as a whole. The overall execution time of an interpreter is longer than that of a compiler. Languages such as Python use are interpreted, and languages such as C and C++ are compiled.

JC

Related Computing A Level answers

All answers ▸

Describe the operations of an optical disk drive used to read data from an optical disk, such as a CD or DVD.


Calculate -3 + 3 using Two's Complement and the Sign and Magnitude Method. Which works correctly?


Outline the differences between how a compiler and an interpreter works, and explain the advantages and usage of of each [12 marks]


Explain a bubble sort. You may use pseudocode and/or diagrams to help demonstrate your answer.