HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A programmer uses an interpreter while she writes a game…
MediumComputer ScienceHigh School (9–10)Computer Science › Software, Languages and TranslatorsConceptualIGCSE

A programmer uses an interpreter while she writes a game…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A programmer uses an interpreter while she writes a game. When the game is finished, she compiles it before selling it.

Explain two reasons for using the interpreter while writing, and two reasons for compiling the finished game. The question is worth 4 marks.

Need a reminder? The key ideaShowHide

A compiler translates the whole code at once, before executing it, produces an executable file, and gives an error report for the whole code. An interpreter translates and executes the code line by line and stops when it finds an error. An interpreter is mostly used when developing a program; a compiler translates the final program.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Interpreter while writing (any two, 1 mark each):

  • It stops at the first error and shows where it is, so errors can be fixed one at a time.
  • The program can be run and parts of it tested without translating the whole program.
  • The output of the lines before the error can be seen, which helps to find the mistake.

Compiler for the finished game (any two, 1 mark each):

  • It produces an executable file that runs without the compiler or an interpreter.
  • The executable runs faster, because it does not need to be translated each time.
  • The source code is not given to the buyers, so it is harder to copy or change.

Watch out. "The compiler is better" is not a reason. Say what it gives that the interpreter does not.

Log in to save this for later
← All Problems
← A program has eight lines. Line 5 has a missing comma and line 7 has a missing bracket, so neither…In a model with made-up times, a program takes 3 s each time it is run with an interpreter… →
More onComputer Science › Software, Languages and Translators

Discussion (0)

Log in to join the discussion.

Loading…

More on this topic

  1. A programmer uses the identifier TotalPrice, which has 10 letters, 25 times in a program…Medium
  2. Name the function of an IDE in each case…Easy
  3. In a model with made-up times, a program takes 3 s each time it is run with an interpreter…Hard
  4. A program has eight lines. Line 5 has a missing comma and line 7 has a missing bracket, so neither…Medium
  5. Say whether each statement is about a compiler or an interpreter…Easy
All problems on this topic →