Back to all Computer Science topics
Topic 1.4Computer Science HL5 flashcards

Translation

Practice Flashcards

Flip cards 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 Flashcards in Topic 1.4

Below are all 5 flashcards for this topic. Sign up free to track your progress and get personalized review schedules.

1.4.15 cards

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.

Want smart review reminders?

Sign up free to track your progress. Our spaced repetition algorithm will tell you exactly which cards to review and when.

Start Free
IB Computer Science HL Topic 1.4 Flashcards | Translation | Aimnova