Question 5
AQA Computer Science June 2019 Paper 2A level12 marks
On the specification
- 3.6 Fundamentals of computer systems3.7 Fundamentals of computer organisation and architecture
Question text
5 A student has written a computer program using an imperative high-level programming language. The program could be translated using either a compiler or an interpreter. Describe the steps that must be completed to translate and execute the program. Your description should include: • why translation is necessary • the differences between how a compiler and an interpreter would translate the program • how the machine code instructions that are used to carry out the program will be fetched and executed by the processor from main memory. [12 marks]