Question 5
OCR Computer Science Specimen Paper 2GCSE5 marks
On the specification
- (a)
- 2.5 Programming languages and IDEs
- (b)
- 2.5 Programming languages and IDEs
Question text
5 A computer game is written in a high-level programming language. (a) State why the computer needs to translate the code before it is executed. [1] (b) Either a compiler or an interpreter can translate the code. Describe two differences between how a compiler and an interpreter would translate the code. 1 2