Programming Languages (Edexcel GCSE Computer Science): Exam Questions

Exam code: 1CP2

16 mins3 questions
1a2 marks

A compiler translates source code to machine code. If the source code is edited, it must be recompiled.

Give two other characteristics of a compiler.

(2)

1b6 marks

A company is developing a new smartphone.

The smartphone has built‑in devices, including a camera and a sound recorder.

The smartphone has applications, including one to edit pictures, one to translate speech to a text file and one for email.

Discuss the characteristics of high‑level and low‑level programming languages that make them suitable for developing software for the smartphone.

You should consider:

• the built‑in devices

• the applications.

23 marks

Algorithms can be written in a high‑level language.

(i) State what high‑level code is translated to.

(1)

(ii) State two methods of source code translation.

(2)

35 marks

Some low-level programming languages use mnemonics.

(i) State the purpose of a mnemonic.

(1)

(ii) State the type of low-level programming language that uses mnemonics.

(1)

(iii) Mnemonics are one characteristic of some low-level languages. Describe one other characteristic of a low-level language.

(2)

(iv) State the name of the high-level programming language translator that executes a line of code immediately after translating it.

(1)