Cambridge O Level Computer Science 2210 · 4.2 Types of programming language, translators and integrated development environments (IDEs)

Q19 · 2210/12/M/J/23 Q5

Worked solution from the Software Paper 1 Computer Systems booklet, Part 2 of 2.

Q192210/12/M/J/23original Q5Structured · 9 marks
Question 5 from 2210/12/M/J/23

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 IDEAA compiler translates everything first and lists all errors afterwards; an IDE bundles tools that help write code.
TOTAL 9 marks

Official mark scheme

Mark scheme for 2210/12/M/J/23 question 5
VIDEO
▶ Topic lesson

A lesson on this topic · by Mr Bulmer's Learning Zone. Tap the picture to open it on YouTube.

Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.