2210/12/M/J/20 question 2: worked solution (May/June 2020, paper 12)
Show as plain textHide plain text
Cambridge O Level Computer Science 2210 · 4.2 Types of programming language, translators and integrated development environments (IDEs) Worked solution from the Software Paper 1 Computer Systems booklet, Part 2 of 2. Q14 2210/12/M/J/20 original Q2 Structured · 7 marks Worked solution (a) Say what each translator is used for, and when. Write any four of these points: Also accepted: both translate the high-level language into low-level language (machine code) The interpreter is used while writing the program [1] The interpreter runs the code line by line , so it helps to find and fix errors (debug) [1] The compiler is used when the program is finished [1] The compiler makes a separate executable file , so the compiler is not needed again to run it [1] Also accepted: if it compiles first time, there are no syntax errors (b) Write any three reasons, for example: It is easier to understand and write (you do not need to know assembly code) [1] It is easier to debug [1] It is easier to maintain [1] Also accepted: it is portable (it can run on different computers) Also accepted: you do not need to manage memory locations or registers Also accepted: you can use an IDE , and there is a bigger choice of languages KEY IDEA An interpreter helps while writing and testing, and a compiler makes the finished executable program. TOTAL 7 marks Official mark scheme VIDEO ▶ Topic lesson A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.