2210/12/M/J/23 question 5: worked solution (May/June 2023, paper 12)

Show as 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. Q19 2210/12/M/J/23 original Q5 Structured · 9 marks Worked solution (a) Tick box C : the program is machine independent [1] The other statements describe low-level languages or are false. (b)(i) Write any three points: It translates the high-level language into machine code (object code) [1] It translates all the code before it is run [1] It makes an executable file [1] (b)(ii) Write any two points: It makes an error report after trying to compile [1] ... showing all the errors , which must be fixed before the program can run [1] (c) Write any three functions, for example: Code editor [1] Error diagnostics [1] Auto-completion [1] Other accepted answers: run-time environment, built-in interpreter, auto-correction, prettyprint. KEY IDEA A compiler translates everything first and lists all errors afterwards; an IDE bundles tools that help write code. TOTAL 9 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.