A programmer is testing a new game and will later sell it to the public. Which translator suits each stage, and why?
- While testing, the programmer wants to find and fix errors quickly and run parts of the program. An interpreter stops at the line with the error, so it suits this stage.
- When selling, customers should not see or change the source code and should not need a translator. A compiler produces an executable file that meets both needs.
- The compiled executable also runs faster, which matters for a game.
Answer: Interpreter during development; compiler for the version that is sold.