logo

Pearson Edexcel GCSE (9-1) Computer Science practice

A business needs software that executes very quickly and wants to identify all coding errors before running it. Justify whether a compiler or interpreter would be more appropriate for this purpose. (4 marks) [4 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

A business needs software that executes very quickly and wants to identify all coding errors before running it. Justify whether a compiler or interpreter would be more appropriate for this purpose. (4 marks) [4 marks].

Answer and explanation

Concise answer

A compiler would be more appropriate because it translates the entire program into machine code in advance and produces an executable, leading to faster execution.

Why this is correct

1 mark for identifying compiler as the suitable choice. 1 mark for stating that a compiler translates the entire program before execution (advance translation). 1 mark for explaining that this results in faster program execution because no translation occurs at runtime. 1 mark for stating that compilers report all errors before running, allowing errors to be resolved upfront. Total = 4 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