Question 5

OCR Computer Science Sample papers Paper 2GCSE5 marks

On the specification

(a)
2.5 Programming languages and IDEs
(b)
2.5 Programming languages and IDEs
Question text

5 Harry is planning to create a computer game using a high-level programming language. (a) State why the computer needs to translate the code before it is executed. (b) Harry can use either a complier or an interpreter to translate the code. Describe two differences between how a complier and an interpreter would translate Harry’s computer game.