Menu

Edexcel GCSE Computer Science (1CP2) Exam Questions

Build a practice paper from 604 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
1Short recall1 markUnits & Conversion Swap Remove

A file has a size of 2 kibibytes.

State the number of bytes in the file.

[1 mark]
Mark scheme

Award one mark for:

  • 2048 (1)
  • 2 × 1024 (1)
  • 2^11 (1)

Allow 2048 bytes.

Do not accept 2000, which is the number of bytes in two decimal kilobytes.

Do not accept 1024, which is the number of bytes in one kibibyte.

Do not accept 16, which is the number of bits in two bytes.

Example answers and how they were marked
Full marks1/1

2048

Why: 2048 is 2 × 1024, the number of bytes in 2 kibibytes (1).

No marks0/1

2000

Why: 2000 uses the decimal kilobyte, not the binary kibibyte; the mark scheme does not accept it.

No marks0/1

16

Why: 16 is the number of bits in two bytes, confusing bits with bytes; the mark scheme does not accept it.

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.

3Explain2 marksTopologies Swap Remove

A bus topology uses one main cable shared by all devices.

Explain why a bus topology can be a security risk.

[2 marks]
Mark scheme

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

  • All devices receive every data packet (1) because the main cable is shared by all nodes (1)
  • Data can be read by any device on the network (1) because there is no central switch to send it only to the destination (1)
  • A device can intercept/capture data not meant for it (1) because all transmissions travel along the same cable (1)
  • Any device can view all data on the cable (1) so data is not private/secure (1)

For both marks, the expansion must follow/associate with the statement.

Do not accept 'it is easy to hack' without saying data can be seen/intercepted on the shared cable.

Do not accept 'the central switch can be hacked' because a bus topology has no central switch.

Example answers and how they were marked
Full marks2/2

Any device on the bus can see all the data (1) because every packet travels along the same shared cable (1).

Why: Linked point (1) and reason (1): data is visible to all devices because the cable is shared.

Some marks1/2

All devices can see the data.

Why: Awarded 1 mark for stating that all devices can see the data, but no linked reason about the shared cable is given.

No marks0/2

It is less secure because the central switch can be hacked.

Why: No credit: a bus topology has no central switch; the answer gives a misconception and no valid point about the shared cable.

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.