Back to Topic 1.4 — Translation
1.4.1Computer Science HL5 flashcards

Interpreters and compilers

Practice Flashcards

Flip to reveal answers
Card 1 of 51.4.1
1.4.1
Question

Compiler or interpreter — what is the difference?

Click to reveal answer

Track your progress — Sign up free to save your progress and get smart review reminders based on spaced repetition.

All 5 Flashcards — Interpreters and compilers

Sign up free to track progress and get spaced-repetition review schedules.

Card 1comparison

Question

Compiler or interpreter — what is the difference?

Answer

A **compiler** translates the whole program in advance into an executable. An **interpreter** translates and executes **line by line**, every run.

Card 2comparison

Question

When is a syntax error reported by each?

Answer

**Compiler**: before the program runs, all at once. **Interpreter**: only when execution **reaches that line**.

Card 3concept

Question

Why is interpreted code slower?

Answer

Translation happens **while it runs**, every time. Compiled code was already machine code before it started.

Card 4definition

Question

What is bytecode for?

Answer

A compromise — compile **once** to an intermediate form, then run it on a virtual machine per platform. The compiler's checking with the interpreter's portability.

Card 5concept

Question

Do compilers or interpreters catch logic errors?

Answer

**Neither.** Both run a wrong answer happily — they check the language's rules, not your intentions.

Track your progress with spaced repetition

Sign up free — Aimnova tells you exactly which cards to review and when, so you remember everything before your IB exam.

Start Free