logo

Pearson Edexcel GCSE (9-1) Computer Science practice

Explain one difference between how a compiler and an interpreter translate high-level programming code into machine code. Outline your point and develop it with an example or further detail. (2 marks) [2 marks]

Try the question first, then check the answer and practise the same topic again.

At a glance

Question

Type

exam_style

Style

Topic

Programming languages

Exam-style question

Try this first

Explain one difference between how a compiler and an interpreter translate high-level programming code into machine code. Outline your point and develop it with an example or further detail. (2 marks) [2 marks].

Answer and explanation

Concise answer

A compiler translates the whole program into machine code before it is run, producing an executable file.

Why this is correct

1 mark for stating a valid difference (e.g., compiler translates the whole code before execution or produces an executable). 1 mark for developing the point with an example or expanded detail (e.g., running independently; C++). Total = 2 marks.

Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.

Common mistake

No common mistake is linked to this question yet.

Related flashcards

Flashcard 1 of 6

Press Space to flip, arrows to move

Related practice questions