Menu

Edexcel GCSE Computer Science (1CP2) Exam Questions

Build a practice paper from 514 exam-style questions, each with its mark scheme and example answers. Print it, or answer it on paper and then open the mark schemes. Or browse the questions by topic.

Build a paper

Topics (none ticked: all of them)
Question types (none ticked: all of them)

Practice paper

2 questions · 2 marks

Pick again
Print
1Multiple choice1 markTranslators Swap Remove

An interpreter translates high-level code differently from a compiler.

Identify what an interpreter does immediately after translating a line of code.

[1 mark]
  • AExecutes the line
  • BProduces the object code
  • CSaves the line to a file
  • DTranslates the next line
Mark scheme
  • A Executes the line (1)
  • The only correct answer is A. The correct answer is that the interpreter executes the line.
  • B is not correct because an interpreter does not produce object code; that is what a compiler does
  • C is not correct because an interpreter does not save the translated code to a file
  • D is not correct because the interpreter executes the current line before it translates the next line
Example answers and how they were marked
Full marks1/1

A Executes the line

Why: Selected the line being executed straight after translation, which is how an interpreter works (1).

No marks0/1

D Translates the next line

Why: Near miss: the interpreter executes the translated line first and only then moves on to translate the next line, so no mark.

No marks0/1

B Produces the object code

Why: Confuses interpretation with compilation: object code is produced by a compiler, not an interpreter, so no mark.

2Short recall1 markLow and High Level Languages Swap Remove

A high-level language uses statements that look like English or maths.

State what a single statement in a high-level language is usually translated into.

[1 mark]
Mark scheme

Award one mark for:

  • Several/multiple machine code instructions (1)

The answer must refer to instructions.

Do not accept machine code on its own.

Do not accept binary on its own.

Do not accept 'one or more machine code instructions' as it does not show that one statement becomes several instructions.

Do not accept assembly code/compiled code/low-level code on their own.

Do not accept 'a line of code'/'a statement' as this repeats the question.

Example answers and how they were marked
Full marks1/1

Several machine code instructions

Why: Matches the creditworthy point that one high-level statement translates into several machine code instructions (1).

No marks0/1

Machine code

Why: Near-miss: gives the type of code but not that one statement becomes several instructions; mark scheme does not accept machine code on its own.

No marks0/1

Binary

Why: Misconception: high-level statements are translated into machine code instructions, not just binary; not accepted.

Questions by topic

More ways to revise Edexcel GCSE Computer Science (1CP2)

Teachers: build a paper, print it with the mark schemes at the end, and sign your school up to set your classes activities on every topic.

Fetch Decode Explain isn't affiliated with or endorsed by Pearson Edexcel.