Learn in your language
Skip to content
IGCSE · Cambridge (CIE) · 0984

Explain how an interpreter runs a program

Trace line-by-line translation and execution and describe what happens when an error is reached.

Cambridge IGCSE Computer Science 0984 · Software · 2026–2028 Version 4 · 0984 (9–1) · 4.2
Exam scope and assessment notes

This sequence follows Cambridge IGCSE Computer Science 0984, 2026–2028 syllabus Version 4. It covers subject content sections 4.1–4.2 only. The separately published 2029–2031 syllabus is not mapped here. Practice is original, self-checked and does not award an official Cambridge grade. Full timed papers and human subject-teacher review remain outstanding. Cambridge states that 0984 has the same 2026–2028 subject content as 0478, with 9–1 grading. In June and November, Cambridge lists 0984 in Administrative zone 3 and for centres in Oman and the UAE. Confirm availability for your centre and exam series with Cambridge International. The separately published 2029–2031 syllabus changes to Python 3 only and removes pseudocode; this 2026–2028 route does not cover those changes.

Before you begin

  • No programming language is required. Be comfortable with place value and multiplication; each lesson introduces the computer-science notation it uses.

Work on paper. Try each question before revealing help, and explain why your method works.

Quick readiness check

Which translator stops when it reaches an error during execution?

What you will learn

  • Describe line-by-line interpretation
  • Explain how execution responds to an error
  • Relate interpretation to interactive development

An interpreter translates and executes line by line

An interpreter reads a high-level program, translates a line and executes it before moving on. If it finds an error, execution stops at that point and the programmer can inspect and correct the source.

Apply and check the rule

This approach is useful during development because a change can be run without building a complete executable first. The interpreter is generally needed when the program is run, and interpretation can take longer than running a compiled executable.

Pause and explain

What can the programmer do after an interpreter reports an error?

Put the idea to work

Worked example

An interpreter reaches an invalid statement on line 12. What happens?

Show the worked solution
  1. Earlier lines have been translated and executed.
  2. The interpreter reports the error and stops at line 12.
  3. The programmer can correct the source and run it again.

Answer Execution stops when the interpreter finds the error; the programmer fixes it and runs the program again.

Try a topic test

Choose Easy, Normal or Difficult. Save your answers and open worked review after finishing.

Test this topic →

From guided practice to a new situation

Write your answer and reasoning first. Use a hint only if you are stuck. The model solution is for self-checking; your written work is not automatically marked.

1 · Guided

State the interpreter's action when it reaches a valid line of high-level code.

Give me a hint

Include both translation and execution.

Compare my reasoning
  1. It translates the line.
  2. It executes that line before moving to the next.

It translates and executes the line, then continues to the next line.

Look for these in your work

  • Translation stated
  • Execution order stated
2 · Independent

Why might a programmer use an interpreter while developing a program?

Give me a hint

Consider feedback after a small change.

Compare my reasoning
  1. The program can be run line by line during development.
  2. An error stops execution near where it is encountered.
  3. The programmer can correct the source and test it again quickly.

It supports rapid development checks and stops at an encountered error so the source can be corrected and retested.

Look for these in your work

  • Development use
  • Error feedback
  • Iteration
3 · Transfer

A student says an interpreter always creates a final executable that runs without the interpreter. Correct the claim.

Give me a hint

Distinguish interpretation from whole-program compilation.

Compare my reasoning
  1. An interpreter translates and executes source line by line.
  2. The interpreter is generally needed to run the program.
  3. A compiler instead produces an executable after translating the whole program.

An interpreter normally translates and executes the source as it runs; a standalone executable is associated with compilation, not ordinary interpretation.

Look for these in your work

  • Line-by-line process
  • Runtime translator
  • Compiler distinguished

Common mistakes

  • Saying an interpreter reports every future error before any code runs
  • Assuming interpretation produces a standalone executable
Recall without your notes

What can you explain now?

What does an interpreter do with source code?

Compare with the explanation

Translates and executes it line by line

The interpreter processes each line as the program runs.

After trying it yourself, choose your next review. This is your self-assessment.

Your review choice appears on Today. Sign in to sync it across devices.

Make it stick

How does an interpreter's response to an error differ from a compiler's whole-program report?

If you needed the solution, close it and solve the problem again from a blank page. A correct answer is stronger when you can explain the reason for each step.

Keep learning Computer Science (9-1)

Course scope and assessment

165 original lessons map the listed objectives across all 10 main topics in the 2026–2028 Version 4 syllabus. Cambridge states that 0984 has the same subject content as 0478, with 9–1 grading. Three retained introductory lessons remain available but are not counted as syllabus-mapped teaching. The 2023–2025 syllabus remains unmapped. The separately published 2029–2031 syllabus changes to Python 3 only and removes pseudocode; this 2026–2028 route does not cover those changes. In June and November, Cambridge lists 0984 in Administrative zone 3 and for centres in Oman and the UAE. Confirm availability for your centre and exam series with Cambridge International. Practical programming in an executable browser workspace, full timed-paper practice and human subject-teacher review remain outstanding. Practice is self-checked and does not award an official Cambridge grade.

StudyForA · Learn with understanding

Original teaching content and links to official sources. Check your exam year and qualification before using a resource.