Menu

Edexcel GCSE Computer Science (1CP2) Exam Questions

Build a practice paper from 693 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 · 3 marks

Pick again
Print
1Multiple choice1 markPacket Switching Swap Remove

A computer sends an email to a server on another network.

Identify the information in a packet header that a router uses to decide where to send the packet.

[1 mark]
  • ADestination IP address
  • BMAC address
  • CPacket number
  • DSource IP address
Mark scheme
  • A Destination IP address (1)
  • The only correct answer is A. A router reads the destination IP address in a packet header to forward the packet towards its destination.
  • B is not correct because a MAC address identifies a device on a local network and is not used to route packets across the internet
  • C is not correct because the packet number is used at the destination to put the packets back into the correct order
  • D is not correct because the source IP address shows where the packet came from, not where it is going
Example answers and how they were marked
Full marks1/1

A Destination IP address

Why: Selected the destination IP address, the header information a router reads to forward the packet (1).

No marks0/1

D Source IP address

Why: A near miss: the source address is in the header, but it shows where the packet came from, so it is not used to decide where the packet is sent.

No marks0/1

B MAC address

Why: Typical misconception reported by examiners: a MAC address identifies a device on a local network and is not used to route packets across the internet.

2Describe2 marksTranslators Swap Remove

High-level code can be translated by a compiler or by an interpreter.

Describe how a compiler translates high-level code differently from an interpreter.

[2 marks]
Mark scheme

Award up to two marks for a linked description such as:

  • The compiler translates the whole program/complete source code in one go (1) whereas the interpreter translates one line/statement at a time (1)
  • The compiler translates all of the source code before any of it is run/executed (1) but the interpreter translates each line/statement as it reads it (1)
  • The interpreter translates one line/statement at a time (1) and the compiler translates the whole program/source code together (1)

Accept the compiler point and the interpreter point in either order.

Do not accept responses about object code/executable files, when the translated code is executed, how errors are reported, or speed/memory use.

Do not accept 'the interpreter executes/runs each line' on its own, without saying that it translates one line/statement at a time.

Example answers and how they were marked
Full marks2/2

A compiler translates the whole program in one go, while an interpreter translates one line at a time.

Why: Whole program translated in one go (1) and interpreter translates one line at a time (1).

Some marks1/2

A compiler translates the whole program in one go.

Why: Whole program translated in one go (1); no linked point about the interpreter translating a line at a time.

No marks0/2

A compiler produces an executable file, but an interpreter does not.

Why: Describes the output, not the amount translated at a time; object code/executable files are 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.