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

3 questions · 5 marks

Pick again
Print
1Multiple choice1 markAddressing Swap Remove

A technician is checking the IP addresses of the devices on a network.

Identify the valid IPv4 address.

[1 mark]
  • A192.168.1
  • B192.168.1.1
  • C192.168.1.1.1
  • D192.168.1.256
Mark scheme
  • B 192.168.1.1 (1)
  • The only correct answer is B. The correct answer is 192.168.1.1.
  • A is not correct because it is an incomplete address with only three numbers, not four
  • C is not correct because it is an address with five numbers, not four
  • D is not correct because it contains 256, which is outside the range 0 to 255
Example answers and how they were marked
Full marks1/1

B 192.168.1.1

Why: Correct option (1): an IPv4 address is four numbers, each from 0 to 255, separated by dots.

No marks0/1

D 192.168.1.256

Why: Near miss: it has four numbers but 256 is outside the range 0 to 255 (mark scheme line D), so no mark.

No marks0/1

A 192.168.1

Why: It has only three numbers, so it is not a complete IPv4 address (mark scheme line A), so no mark.

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.

3Convert2 marksDenary to Binary Conversion Swap Remove

Computer systems manipulate bit patterns.

Convert the denary number 140 to 8-bit binary.

[2 marks]
Mark scheme

Award one mark for each correct nibble in the correct order:

  • 1000 (1)
  • 1100 (1)

0 marks if the response is not 8-bit binary.

Example answers and how they were marked
Full marks2/2

1000 1100

Why: 140 = 128 + 8 + 4: both nibbles are correct (2).

Some marks1/2

1000 1101

Why: Converts 141 instead (a slip in adding up the place values). The first nibble is correct (1); the second is not.

No marks0/2

0011 0001

Why: The bits are written in reverse, smallest place value first. Neither nibble is correct.

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.