Time left1:30:00 Answered 0 of 32 75 marks
Pearson Edexcel 1CP2/01 1 hour 30 minutes 75 marks Full length paper

GCSE Computer Science Paper 1: Principles of Computer Science

A full length 1CP2/01 paper in five 15 mark questions: merge sort, binary search, truth tables and a trace table; two's complement, shifts, bitmaps and the Caesar cipher; hardware and software; networks and security; and the impacts of technology, ending with a 6 mark discussion of delivery drones.

Instructions

Time allowed
1 hour 30 minutes
Total marks
75
Sections
Question 1, 15 marks; Question 2, 15 marks; Question 3, 15 marks; Question 4, 15 marks; Question 5, 15 marks
Calculator
You must not use a calculator.
  • Answer all the questions.
  • The number of marks for each question is shown in brackets. Use it as a guide to how much to write.
  • The clock at the top counts down from the real time allowed. When it reaches zero the paper is locked and marked, as it would be collected in the exam hall.
  • In this paper 1 kibibyte (KiB) = 1024 bytes and 1 mebibyte (MiB) = 1024 KiB, as in the specification.
  • There are five questions, each worth 15 marks.
  • Answer all questions. Where a question says tick one box, tick only one. Show your working in calculations: the method can earn marks when the answer is wrong.

Questions

Answer every question, then finish the paper to have it marked. Marking as you go teaches you far less.

75 marks

Question 1 15 marks

Computational thinking

1(a)Which one of these describes decomposition? Tick (✓) one box.1 mark

Tick one box.

Mark scheme0 / 1
  • LB Breaking a problem down into smaller problems that are easier to solve
Model answer

Decomposition breaks a problem into sub-problems. Removing unnecessary detail is abstraction.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
1(b)A merge sort is used to put this list into ascending order.38, 15, 72, 4, 56, 23, 9, 41The list has been split into single items. Complete the table to show the list after each stage of merging.3 marks
Stage1st2nd3rd4th5th6th7th8th
Pairs merged
Fours merged
Fully merged

Mark scheme0 / 3
  • LRow 1: 15, 38, 4, 72, 23, 56, 9, 41
  • LRow 2: 4, 15, 38, 72, 9, 23, 41, 56
  • LRow 3: 4, 9, 15, 23, 38, 41, 56, 72
Model answer

Neighbouring single items are merged into ordered pairs: 15 38, 4 72, 23 56, 9 41. Pairs are merged into ordered fours: 4 15 38 72 and 9 23 41 56. Those two lists are merged by repeatedly taking the smaller front item: 4 9 15 23 38 41 56 72.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
1(c)A binary search is used to find 56 in the sorted list below. The middle item is at position (first + last) // 2, where first and last are the positions of the first and last items still being searched. Complete the table to show the item checked at each comparison.3 marks
Position01234567
Item49152338415672
ComparisonItem checked
1
2
3

Mark scheme0 / 3
  • L23
  • L41
  • L56
Model answer

(0 + 7) // 2 = 3: item 23. 56 is larger, so first becomes 4. (4 + 7) // 2 = 5: item 41. 56 is larger, so first becomes 6. (6 + 7) // 2 = 6: item 56, found.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
1(d)Complete the truth table for P = (A AND NOT B) OR (B AND C).4 marks
ABCP
000
001
010
011
100
101
110
111

Mark scheme0 / 4
  • LRows 1 and 2: 0, 0
  • LRows 3 and 4: 0, 1
  • LRows 5 and 6: 1, 1
  • LRows 7 and 8: 0, 1
Model answer

A AND NOT B is 1 only when A is 1 and B is 0. B AND C is 1 only when both are 1. P is 1 when either is 1.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
1(e)Complete the trace table for this program. The first row has been completed for you.4 marks
Python code
number = 6
result = 1
while number > 1:
    result = result * number
    number = number - 2
print(result)
numberresultOutput
61

Mark scheme0 / 4
  • LSecond row: 4, 6
  • LThird row: 2, 24
  • LFourth row: 0, 48
  • LOutput: 48
Model answer

Each pass multiplies result by number, then takes 2 off number: 1 x 6 = 6, 6 x 4 = 24, 24 x 2 = 48. number is then 0, so the loop ends and 48 is printed.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.

Question 2 15 marks

Data

2(a)Signed integers are stored in 8-bit two's complement. Give:2 marks

Mark scheme0 / 2
  • L11010011
  • L-26
Model answer

45 is 0010 1101. Inverting gives 1101 0010, and adding 1 gives 1101 0011. 1110 0110 is -128 + 64 + 32 + 4 + 2 = -26.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
2(b)Give the result of an arithmetic shift right of two places on the 8-bit two's complement integer 1011 0100.1 mark

Mark scheme0 / 1
  • L11101101
Model answer

An arithmetic shift right copies the sign bit into the gap, keeping the number negative: 1110 1101. That is -76 divided by 4, -19.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
2(c)Explain what is meant by overflow in binary addition.2 marks
Explain

Mark scheme0 / 2
  • LThe result needs more bits than are available to store it
  • Lso the extra carry bit is lost and the stored result is wrong
Model answer

Overflow happens when the result of an addition is too large to fit in the number of bits available, for example a result needing 9 bits in an 8-bit register. The final carry is lost, so the stored result is wrong.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
2(d)A bitmap image is 1024 pixels wide and 768 pixels high, with a colour depth of 24 bits. Calculate the file size in mebibytes (MiB). Show your working.3 marks

Mark scheme0 / 3
  • LCorrect answer, full marks: 2.25 MiB
  • LMethod: Multiplies width by height by colour depth
  • LMethod: Divides by 8, then by 1024 twice
Model answer

1024 x 768 = 786,432 pixels. 786,432 x 24 = 18,874,368 bits. / 8 = 2,359,296 bytes. / 1024 = 2304 KiB. / 1024 = 2.25 MiB.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
2(e)A Caesar cipher with a shift of 3 moves each letter three places along the alphabet, wrapping round from Z to A. Give:2 marks

Mark scheme0 / 2
  • LFDE
  • LHELLO
Model answer

C, A, B each move three letters on: F, D, E. Moving K, H, O, O, R three letters back gives HELLO.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
2(f)Explain the difference between lossless and lossy compression.2 marks
Explain

Mark scheme0 / 2
  • LLossless compression lets the original data be restored exactly, with nothing lost
  • LLossy compression permanently removes some data, usually giving a smaller file
Model answer

Lossless compression reduces the file size in a way that can be reversed, so the original data is restored exactly. Lossy compression permanently removes data that is judged less important, so it makes files smaller but the original can never be fully restored.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
2(g)State how many bits ASCII uses to represent each character.1 mark

Mark scheme0 / 1
  • L7
Model answer

ASCII is a 7-bit code, which gives 128 characters.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
2(h)Complete each conversion.2 marks

Mark scheme0 / 2
  • L63
  • LAC
Model answer

3F = 3 x 16 + 15 = 63. 1010 is A and 1100 is C: AC.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.

Question 3 15 marks

Computers

3(a)Tick (✓) one box in each row to show the utility software described.4 marks
DefragmentationBackupCompressionAnti-malware
Rearranges the parts of files on a hard disk so they are stored together
Makes copies of files so they can be restored if the originals are lost
Reduces the size of files
Detects and removes malicious software

Tick one box in each row.

Mark scheme0 / 4
  • LRearranges the parts of files on a hard disk so they are stored together: Defragmentation
  • LMakes copies of files so they can be restored if the originals are lost: Backup
  • LReduces the size of files: Compression
  • LDetects and removes malicious software: Anti-malware
Model answer

Defragmentation reorganises, backup copies, compression shrinks and anti-malware protects.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
3(b)Describe the role of the address bus and the data bus in the von Neumann architecture.2 marks
Describe

Mark scheme0 / 2
  • LThe address bus carries the address of the memory location to be read or written, from the CPU to memory
  • LThe data bus carries data and instructions between the CPU and memory, in both directions
Model answer

The address bus carries the address of the memory location the CPU wants to use, one way, from the CPU to memory. The data bus carries the data or instruction itself between the CPU and memory, in either direction.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
3(c)Which one of these is an embedded system? Tick (✓) one box.1 mark

Tick one box.

Mark scheme0 / 1
  • LA The controller in a microwave oven
Model answer

An embedded system is a computer built into another device to do one dedicated job.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
3(d)Explain why a computer needs both RAM and ROM.2 marks
Explain

Mark scheme0 / 2
  • LRAM holds the programs and data in use, and can be changed, but it is volatile
  • LROM is non-volatile, so it keeps the start-up instructions (the boot program) when the power is off
Model answer

RAM is where the programs and data currently in use are held while the computer runs, and its contents change constantly, but it is volatile. ROM is non-volatile, so it keeps the instructions needed to start the computer even when the power is off.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
3(e)Tick (✓) one box in each row to show the translator described.3 marks
CompilerInterpreterAssembler
Translates the whole program into an executable file before it is run
Translates and runs a high-level program one line at a time
Translates low-level mnemonics into machine code

Tick one box in each row.

Mark scheme0 / 3
  • LTranslates the whole program into an executable file before it is run: Compiler
  • LTranslates and runs a high-level program one line at a time: Interpreter
  • LTranslates low-level mnemonics into machine code: Assembler
Model answer

A compiler produces an executable, an interpreter works line by line, and an assembler translates assembly language mnemonics.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
3(f)Explain one reason why a programmer might write part of a program in a low-level language.2 marks
Explain

Mark scheme0 / 2
  • LLow-level code gives direct control of the hardware, such as registers and memory locations
  • Lso the code can run faster and use less memory, which matters in an embedded system
Model answer

A low-level language gives the programmer direct control of the processor's registers and memory, so the code can be made to run very fast and use very little memory, which matters for device drivers and embedded systems.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
3(g)Which one of these is a function of an operating system? Tick (✓) one box.1 mark

Tick one box.

Mark scheme0 / 1
  • LC Managing the files stored on secondary storage
Model answer

File management is one of the operating system's jobs, along with memory, process, peripheral and user management.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.

Question 4 15 marks

Networks

4(a)Which one of these is a characteristic of a wide area network (WAN)? Tick (✓) one box.1 mark

Tick one box.

Mark scheme0 / 1
  • LD It covers a large geographical area
Model answer

A WAN connects networks over a large area, often using infrastructure owned by other companies.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
4(b)Explain one advantage and one disadvantage of a star topology.2 marks
Explain

Mark scheme0 / 2
  • LAdvantage: if one cable or device fails, the rest of the network keeps working
  • LDisadvantage: if the central switch fails the whole network fails, and it needs a lot of cable
Model answer

Each device has its own cable to the central switch, so if one cable fails only that device is affected. But everything depends on the switch: if it fails, the whole network goes down, and all that cable makes it expensive to install.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
4(c)Tick (✓) one box in each row to show the protocol described.4 marks
POP3SMTPHTTPSFTP
Downloads emails from a server, usually deleting them from it
Sends emails
Transfers web pages securely
Transfers files between computers

Tick one box in each row.

Mark scheme0 / 4
  • LDownloads emails from a server, usually deleting them from it: POP3
  • LSends emails: SMTP
  • LTransfers web pages securely: HTTPS
  • LTransfers files between computers: FTP
Model answer

POP3 downloads mail, SMTP sends it, HTTPS is secure web traffic and FTP transfers files.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
4(d)Tick (✓) one box in each row to show the layer of the TCP/IP model at which each protocol works.2 marks
ApplicationTransportInternetLink
HTTP
TCP
IP
Ethernet

Tick one box in each row.

Mark scheme0 / 2
  • L1 mark for both: HTTP: Application; TCP: Transport
  • L1 mark for both: IP: Internet; Ethernet: Link
Model answer

HTTP is an application protocol, TCP works at the transport layer, IP at the internet layer and Ethernet at the link layer.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
4(e)Explain how a firewall protects a network.2 marks
Explain

Mark scheme0 / 2
  • LIt checks the data (packets) coming into and going out of the network
  • Lagainst a set of rules, blocking anything that is not allowed
Model answer

A firewall inspects every packet entering or leaving the network and compares it against a set of rules, blocking any traffic that is not allowed, such as connections from unknown addresses or to unauthorised ports.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
4(f)Describe what is meant by a phishing attack, and give one way of protecting against it.2 marks
Describe

Mark scheme0 / 2
  • LEmails or messages that pretend to come from a trusted organisation, to trick people into giving personal details or clicking a malicious link
  • LProtection: training users to spot suspicious messages, email filtering, or checking the sender and links
Model answer

Phishing is sending emails or texts that pretend to come from a trusted organisation, such as a bank, to trick people into clicking a link or giving away personal details. Staff can be trained to recognise suspicious messages, and email filters can block many of them.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
4(g)Which two of these are advantages of a wired connection compared with a wireless one? Tick (✓) two boxes.2 marks

Tick two boxes.

Mark scheme0 / 2
  • LB It is less affected by interference
  • LC It usually transfers data faster
  • LNo marks if more than 2 boxes are ticked
Model answer

Cables give faster, more reliable connections. Freedom to move and no cabling are advantages of wireless.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.

Question 5 15 marks

Issues and impact

5(a)Tick (✓) one box in each row to show the law that has most likely been broken.3 marks
Computer Misuse Act 1990Data Protection Act 2018Copyright, Designs and Patents Act 1988
A company sells its customers' email addresses without their consent
A student uploads a film to a website without permission
A hacker guesses a teacher's password and changes students' grades

Tick one box in each row.

Mark scheme0 / 3
  • LA company sells its customers' email addresses without their consent: Data Protection Act 2018
  • LA student uploads a film to a website without permission: Copyright, Designs and Patents Act 1988
  • LA hacker guesses a teacher's password and changes students' grades: Computer Misuse Act 1990
Model answer

Misusing personal data breaks data protection law, sharing a film breaks copyright, and unauthorised access to change data breaks the Computer Misuse Act.

Marked exactly against the mark scheme. Change it only if an examiner would accept your answer.
5(b)A small business is choosing an office suite. Explain one benefit and one drawback of choosing open-source software.2 marks
Explain

Mark scheme0 / 2
  • LBenefit: it is usually free, and the code can be changed to suit the business
  • LDrawback: there may be no official support, or fewer features and less compatibility
Model answer

Open-source software is usually free, which saves the business money, and its source code can be modified to suit its needs. However, there is often no official support line, so the business may struggle to get help when something goes wrong.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
5(c)Describe what is meant by machine learning.2 marks
Describe

Mark scheme0 / 2
  • LA computer program improves its performance at a task by learning from data
  • LIt finds patterns itself, rather than being explicitly programmed with rules
Model answer

Machine learning is a type of artificial intelligence in which a program improves at a task by being trained on data: it finds the patterns itself instead of being explicitly programmed with rules.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
5(d)Explain how algorithmic bias can occur in an artificial intelligence system.2 marks
Explain

Mark scheme0 / 2
  • LThe system is trained on data that is unrepresentative or reflects past prejudice
  • Lso its decisions unfairly favour or disadvantage some groups of people
Model answer

An AI system learns from the data it is trained on. If that data is unrepresentative, or reflects unfair decisions made in the past, the system learns the same patterns, so its decisions unfairly favour some groups of people over others.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
5(e)An online retailer plans to deliver parcels using drones.Discuss the environmental, ethical and legal issues of this plan.6 marks
Discuss

Mark scheme0 / 6
  • LEnvironmental benefit: battery drones use less fuel and produce fewer emissions than vans
  • LEnvironmental cost: making and charging drones and their batteries uses resources and energy, creating e-waste
  • LNoise and disturbance to people and wildlife
  • LDelivery drivers may lose their jobs
  • LDrones with cameras raise privacy concerns as they fly over homes and gardens
  • LLegal: personal data such as addresses and camera footage must be handled under the Data Protection Act; flights must follow aviation rules
  • LSafety and liability: who is responsible if a drone crashes or injures someone
  • LReaches a balanced conclusion
Model answer

Drone delivery could cut emissions, because small battery drones use far less energy per parcel than delivery vans, and they keep vans off congested roads. But the drones and their batteries must be manufactured from mined materials, charged and eventually disposed of, and hundreds of drones overhead would add noise that disturbs people and wildlife. Ethically, delivery drivers could lose their jobs, and drones carrying cameras raise privacy concerns as they fly over homes and gardens. Legally, the retailer must handle customers' addresses and any camera footage under the Data Protection Act 2018, and flights must follow aviation regulations about where and how high drones may fly. It must also be clear who is liable if a drone crashes and injures someone. On balance drones may suit light parcels in rural areas, but only with strict rules on safety, noise and privacy.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
Machine mark 0 / 75
About this paper

This is an original paper modelled on the real Pearson Edexcel 1CP2/01 past papers: the same structure, the same balance of topics, the same command words and mark tariffs, 75 marks in 1 hour 30 minutes, exactly as the real paper allows. It is not a past paper. Real past papers are the copyright of the exam board and cannot be republished here, so links to the official papers on the board's own site are on the exam papers page.