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 ▸

How can I decide whether Quicksort or Mergesort is better for a given situation?


Image a graph. In which instances is it more appropriate to use an adjacency list instead of an adjacency matrix?


In Python, write a recursive function that returns the first n Fibonacci numbers.


What are the main differences between different loops when it comes to coding ?