A Level Computer Science · Chapter 18 · Component 01: Computer systems
Computers shape how people live and are treated, so laws limit how data and systems may be used, and ethics asks what we should do beyond those limits.
This chapter teaches the main UK laws that govern computing: data protection, computer misuse, copyright and the interception of communications. It then teaches the moral, ethical, cultural and environmental questions computers raise, from automation and algorithmic bias to censorship, surveillance and electronic waste.
In this chapter · jump to a section
Start here
Your route through this chapter
By the end of this chapter you will be able to:
- explain the principles and rights of data protection law, and calculate the maximum fine for a breach
- describe the offences of the Computer Misuse Act and their maximum sentences
- explain how copyright protects software, and the difference between proprietary and open source licences
- describe the powers to intercept and monitor communications, and the safeguards on them
- discuss the ethical issues of automation, automated decisions, algorithmic bias, censorship and monitoring
- discuss the environmental and cultural effects of computing, and calculate the energy and carbon cost of devices
Time: two sessions, about 3 hours, plus the programming task.
You need first: networks from Networks, protocols and the internet, and security from Network security and threats.
The big picture
The big picture
Computer systems hold detailed records of people's lives: where they shop, what they search for, who they talk to, their health, their money and their location. They decide who gets a loan, which advert appears, what news is shown and sometimes who is stopped by the police. That power brings questions that are not about how a system works, but about whether it should exist and how it should be used.
Some of those questions are settled by law. Parliament has passed laws that protect personal data, make hacking a crime, protect the work of programmers and control when communications may be intercepted. Breaking these laws can bring large fines or prison. Every computer scientist needs to know what the laws require.
Laws are slow to change, while technology changes quickly. Many of the laws in this chapter were written before smartphones, social media or modern artificial intelligence existed, and have been amended many times since. Applying an old law to a new technology often needs judgement, and new laws are regularly proposed as fresh problems appear. Knowing the purpose of each law helps to apply it sensibly.
Other questions have no legal answer. Is it right to replace a factory's workers with robots? Should a computer decide who is offered a job? Should a government block websites, or a company read its staff's email? These are ethical questions: they ask what is right, and reasonable people disagree. The skill is to weigh the benefits and harms for everyone affected, not to recite a single answer.
A useful way to start is to list the stakeholders: everyone who gains or loses from a decision. For a new self-service checkout, they include the shop's owners, its customers, the cashiers, the company that makes the machines and the local community. Asking what each of them gains and loses, and whether any group bears the costs while another takes the benefits, turns a vague question into a structured argument.
Computing also affects the planet and the world's cultures. Data centres use enormous amounts of electricity, and devices are thrown away after a few years. The benefits of technology are not shared equally between rich and poor, young and old, or between countries. A full judgement about any system has to consider these effects too.
Section 1
Data protection
Personal data
The Data Protection Act 2018, together with the UK General Data Protection Regulation, controls how organisations use personal data. Personal data is any information that relates to an identifiable living person, such as a name, an email address, a photo or a location. The person the data is about is called the data subject. The organisation that decides how the data is used is the controller.
The Information Commissioner's Office, or ICO, is the UK regulator. It is independent of the government, so it can act against public bodies as well as companies. It gives guidance, investigates complaints and breaches, and can issue large fines to organisations that break the law.
The principles
Personal data must be handled according to a set of principles. It must be processed lawfully, fairly and transparently, so people know what is happening to their data. It must be collected for a specified purpose and not used for unrelated ones. Only the data that is needed should be collected, and it must be kept accurate and up to date.
Personal data must not be kept for longer than necessary, and it must be kept secure against loss, theft and damage. The controller must be able to show that it follows all of these principles, which is called accountability. Some data, such as health records, religion or ethnicity, is special category data and needs extra protection.
Rights of data subjects
Data subjects have rights over their data. They can ask an organisation for a copy of the personal data it holds about them, a subject access request, which must normally be answered within one month. They can have wrong data corrected, and in some cases ask for data to be deleted, the right to erasure. They can object to some kinds of processing, such as direct marketing, and challenge important decisions made entirely by a computer.
If personal data is lost or stolen, the organisation must normally report the breach to the ICO without undue delay. Where feasible, it must do so within 72 hours of becoming aware of it. If the breach is likely to put people at high risk, the people affected must be told as well.
Fines
The maximum fine depends on what was broken. For the most serious breaches, such as ignoring the principles or people's rights, the cap is £17.5 million or 4% of worldwide annual turnover. Whichever is higher applies. For other breaches, such as failing to keep proper records, the cap is £8.7 million or 2%.
Figure 18.1 plots the maximum fine against turnover. Move the turnover and switch between the two tiers. Then switch on the wrong model.
The maximum data protection fine
- Maximum fine
- £40 million
- Set by
- the percentage of turnover
Common mistake: thinking the maximum fine is capped at the fixed sum for every organisation. The fixed sum is a floor, not a ceiling. For a large company, 4% of worldwide turnover is far more than £17.5 million, so the cap grows with the size of the business.
Worked example 1: a large company
A company with a worldwide annual turnover of £1 billion seriously breaches the data protection principles. What is the maximum fine?
| Working | Reason |
|---|---|
| 4% of £1,000 million = £40 million | The percentage for the higher tier |
| The fixed sum is £17.5 million | The other possible cap |
| The higher of the two is £40 million | The law takes whichever is higher |
| So the maximum fine is £40 million | The percentage sets the cap here |
Worked example 2: where the percentage takes over
Above what turnover does the 4% figure, rather than £17.5 million, set the higher-tier cap?
| Working | Reason |
|---|---|
| 4% of turnover = £17.5 million at the crossover | The two caps are equal there |
| Turnover = 17.5 ÷ 0.04 | Divide the fixed sum by the percentage |
| = £437.5 million | This is the crossover turnover |
| Below this, the cap is £17.5 million; above it, 4% | The higher of the two always applies |
Derivation: the maximum fine as a function of turnover
Let T be the worldwide annual turnover. The higher-tier cap is the larger of a fixed sum and a share of T.
The two parts are equal where 0.04T = 17.5 million, so the crossover is
For the standard tier the same steps give max(8.7 million, 0.02T), with a crossover at £435 million. Above the crossover, the cap rises in proportion to turnover.
Worked example 3: a subject access request
A pupil's parent sends a subject access request to a school on 3 March. By when must the school normally respond, and what must it send?
| Working | Reason |
|---|---|
| The deadline is one calendar month | The normal time limit for a request |
| So the school must respond by 3 April | One month after the request arrives |
| It must send a copy of the personal data held about the pupil | That is what a subject access request is for |
| It may withhold data that would harm someone else | Other people's rights must be protected too |
These are maximums: the ICO considers how serious the breach was, whether it was deliberate, what the organisation did to limit the harm and whether it cooperated. Most breaches lead to warnings or smaller fines, but the possibility of a very large one makes organisations take data protection seriously.
Organisations often appoint a data protection officer to advise on the law and check that it is followed. Before starting a risky new use of personal data, such as installing cameras with face recognition, they should carry out an impact assessment. It sets out what data will be used, why, what could go wrong and how the risks will be reduced. Designing privacy into a system from the start is far cheaper than fixing it later.
Data protection also limits sending personal data abroad. An organisation may only transfer it to another country if the data will be protected to a similar standard there. That may be because the country's own laws are judged adequate, or because contracts require the same protections. This matters for the many services that store data in data centres around the world.
Check yourself. A shop keeps customers' addresses for ten years after their last order, though it never uses them. Which principle is it breaking?
Show the answer
It is breaking storage limitation, because the data is kept for longer than necessary. It may also break data minimisation, since data it no longer needs should not be held.
Section 2
The Computer Misuse Act
The offences
The Computer Misuse Act 1990 makes it a crime to use computers without permission. Section 1 makes it an offence to access computer material without authorisation, such as logging into someone else's account with a guessed password. No damage is needed: simply getting in without permission is the crime.
Section 2 covers unauthorised access with intent to commit or help with a further serious offence, such as getting into a bank's system in order to steal money. Section 3 covers unauthorised acts intended to impair the operation of a computer, or reckless about doing so, such as spreading malware, deleting files or launching a denial-of-service attack.
Section 3ZA covers unauthorised acts that cause, or create a significant risk of, serious damage, such as an attack on a power station's control systems. Section 3A makes it an offence to make, supply or obtain tools, such as malware, for use in these offences.
Common mistake: thinking it is legal to get into a system as long as no damage is done. Section 1 makes unauthorised access itself a crime, whatever happens next. Logging into a friend's account without permission, even just to look, is an offence.
Worked example 4: naming the offence
A student guesses a teacher's password, logs in, and changes their own marks. Which offences has the student committed, and what is the most serious maximum sentence?
| Working | Reason |
|---|---|
| Logging in without permission: section 1 | Unauthorised access is an offence in itself |
| Changing the marks: section 3 | An unauthorised act that impairs the data's reliability |
| Section 1 carries up to 2 years | The maximum for unauthorised access |
| Section 3 carries up to 10 years | The more serious offence sets the maximum |
Worked example 5: tools and intent
A programmer writes ransomware and sells it online, but never uses it. Has a crime been committed?
| Working | Reason |
|---|---|
| Making and supplying the ransomware is covered by section 3A | Tools for use in offences are illegal |
| No attack is needed for this offence | Supplying the tool is enough |
| The maximum sentence is 2 years | That is the limit for section 3A |
| Anyone who uses it to encrypt files commits a section 3 offence | That carries up to 10 years |
The Act has limits and critics. Security researchers who probe systems to find weaknesses may break section 1 unless the owner has given permission, which is why penetration testers always work under a written agreement. Some argue the law should protect researchers acting in good faith, while others worry that such a defence could be abused.
The Act is also hard to enforce across borders. Many attackers live in other countries, where UK courts cannot easily reach them, and some of those countries do not cooperate with investigations. International agreements help, but a large share of computer crime goes unpunished. That is one reason why prevention, through the defences of Network security and threats, matters so much.
Check yourself. Which section of the Computer Misuse Act covers a denial-of-service attack that takes a website offline?
Show the answer
Section 3, because it is an unauthorised act intended to impair the operation of a computer. It carries a maximum of 10 years.
Section 3
Copyright and software licensing
Copyright
The Copyright, Designs and Patents Act 1988 gives the creator of an original work the right to control how it is copied, shared and adapted. Computer programs are protected as literary works, so the code a programmer writes belongs to them, or to their employer if they wrote it as part of their job. Copyright arises automatically when the work is created; it does not need to be registered. A copyright notice on a work is a useful reminder, but a work without one is protected just the same.
For literary works, including programs, copyright lasts until 70 years after the end of the year in which the author died. After that, the work enters the public domain, and anyone may copy and use it freely.
It is illegal to copy software, music, films or books without permission, to share them online, or to sell copies. Copying a paid-for game for friends, or downloading a film from an unofficial site, breaks the Act. Organisations must also keep within their licences: installing a program on 50 computers when the licence covers 20 is an infringement.
Common mistake: thinking anything on the internet is free to copy. Work published online is still protected by copyright. Being able to view or download something does not give permission to copy, share or reuse it; that permission must come from the copyright owner, usually through a licence.
Worked example 6: when copyright ends
An author of a computing textbook died in 1954. In which year does the book's copyright expire, and from when can it be copied freely?
| Working | Reason |
|---|---|
| Protection lasts 70 years after the end of the year of death | The rule for literary works |
| 1954 + 70 = 2024 | Copyright runs to the end of 2024 |
| So the work is protected until 31 December 2024 | The last day of the 70th year |
| It enters the public domain on 1 January 2025 | Anyone may then copy it |
Licences
A licence is the copyright owner's permission to use their work on stated terms. Proprietary software, sometimes called closed source, is sold or licensed without its source code, and the licence usually forbids copying, changing or reverse engineering it. The company keeps control and earns money, and users get a supported product, but they cannot fix or adapt it themselves.
Open source software publishes its source code under a licence that lets anyone read, change and share it. Some open source licences require that changed versions are shared under the same terms, so improvements stay open. Others let the code be used in closed products. Open source software is often free of charge, but it is still copyrighted: the licence is what gives the freedoms.
Worked example 7: counting licences
A school buys a licence for 30 copies of a design program, then installs it on 45 computers. How many copies are unlicensed, and what should the school do?
| Working | Reason |
|---|---|
| Unlicensed copies = 45 − 30 = 15 | Every installation needs a licence |
| Those 15 copies infringe copyright | Copying beyond the licence is not permitted |
| Buy 15 more licences, or remove 15 copies | Either brings the school back within the law |
| A site licence may be cheaper for many computers | Licences are sold in different forms |
Patents are a different kind of protection. A patent protects an invention, such as a new kind of device, for a limited time, usually 20 years, in return for publishing how it works. In the UK, computer programs as such cannot be patented, but an invention that uses software to produce a technical effect sometimes can.
Licences come in many forms. A single-user licence covers one person, a multi-user licence covers a set number of people, and a site licence covers everyone at a school or company. Some software is sold as a subscription, which must be renewed every year. Freeware is free to use but not to change, while shareware can be tried for free but must be paid for to keep using it.
Check yourself. Is open source software free of copyright? Explain.
Show the answer
No. Open source software is still protected by copyright. Its licence is what gives everyone permission to read, change and share it, often on condition that changed versions stay open too.
Section 4
Interception and monitoring
The Regulation of Investigatory Powers Act
The Regulation of Investigatory Powers Act 2000, known as RIPA, sets the rules for when public bodies may intercept communications and carry out surveillance. It allows authorised bodies, such as the police and the security services, to intercept communications or require access to data. They may do so only for specified purposes, such as preventing serious crime or protecting national security. Many of its interception powers have since been updated by the Investigatory Powers Act 2016.
The Acts require safeguards. Interception normally needs a warrant, approved by a senior minister and checked by an independent judicial commissioner. The use of the powers is overseen, and people who believe they have been unlawfully monitored can complain to a tribunal. The Acts can also require communication companies to keep certain records and to help with authorised investigations.
Common mistake: thinking these laws let anyone monitor anyone's communications. The powers belong only to authorised public bodies, for specified purposes such as serious crime or national security. Interception normally needs a warrant, and its use is independently overseen.
The balance of privacy and security
Interception powers raise a hard ethical question. Supporters argue that criminals and terrorists use the same phones and apps as everyone else, so the authorities need lawful ways to see their communications. Critics argue that collecting large amounts of data about ordinary people threatens privacy and free speech, and that powers created for one purpose can be stretched to others.
Encryption sharpens the debate. End-to-end encryption means only the sender and receiver can read a message, so not even the company running the service can hand it over. Some governments have asked for ways to read encrypted messages in serious cases. Security experts reply that any such access could also be found and used by criminals, weakening security for everyone.
Monitoring at work and at school
Employers and schools also monitor their own networks, to keep them secure and to protect people, especially children. Data protection law applies here too: monitoring must be necessary and proportionate, and people must be told what is being monitored and why. Secretly reading staff's personal messages, for example, would rarely be justified.
Monitoring is increasingly built into everyday products. Phones record locations, smart speakers listen for their wake word, and fitness bands track sleep and heart rates. Users gain convenience and insight, but the data can reveal a great deal about their lives. Who can see it, how long it is kept and whether it is shared or sold are all questions of law and of ethics.
Worked example 8: is the monitoring proportionate?
A school's web filter logs every site visited by every pupil and keeps the logs for one term. Decide whether this is likely to be justified.
| Working | Reason |
|---|---|
| The aim is to keep pupils safe online | A legitimate and important purpose |
| Pupils and parents are told about the logging | Monitoring must be transparent |
| Logs are kept for one term, not for ever | Data is not kept longer than needed |
| So it is likely to be proportionate | The purpose, openness and limits fit |
Check yourself. What safeguard normally applies before the security services may intercept a person's communications?
Show the answer
They normally need a warrant, approved by a senior minister and checked by an independent judicial commissioner, and its use is overseen by independent bodies.
Section 5
Ethical issues
Computers in the workforce
Automation has always changed work. Robots assemble cars, self-service tills replace cashiers, and software now writes reports, answers customer questions and reads medical scans. Automation can make work safer, cheaper and more accurate, and it creates new jobs, such as building and maintaining the machines. Over long periods, economies have usually found new work for people, but the change can be painful for those caught in it. But the people whose jobs disappear may not have the skills for the new ones, and whole towns can suffer when a major employer automates.
An ethical discussion weighs these effects for everyone involved. That includes the company's owners and customers, the workers who lose jobs and those who gain new ones, and society, which may pay for retraining or benefits. It also asks who should bear the cost of the change, and whether the benefits are shared fairly.
Automated decision making
Computers increasingly make, or help make, decisions about people: whether a loan is approved, which job applicants are interviewed, how much an insurance policy costs. Automated decisions are fast, consistent and cheap. But they can be hard to explain, and a mistake in the system can affect thousands of people before anyone notices.
Data protection law gives people the right not to be subject to some important decisions made solely by a computer, and to ask for a human to review them. Many people argue that anyone affected by an automated decision should be told why it was made. That is hard when the system learned its rules from data rather than having them written by a programmer.
Algorithmic bias
A system that learns from past data can learn past unfairness. If a company's past hiring favoured one group, a system trained on its old decisions will favour that group too. Bias can also enter through the inputs. A rule that never uses a person's ethnicity can still treat ethnic groups very differently if it uses something linked to ethnicity, such as postcode.
One way to measure the effect is the selection rate of each group, the share of its applicants that the system selects. The impact ratio divides the lower rate by the higher. A ratio below 0.8 is widely used as a warning sign that a process may be treating a group unfairly, and that it should be examined.
Figure 18.2 shows an automated screen applied to applicants from two groups. Move the threshold and watch the selection rates and the impact ratio. Then switch on the wrong model.
A screening rule that never looks at the group
- Group X selected
- 17 of 20 (85%)
- Group Y selected
- 11 of 20 (55%)
- Impact ratio
- 0.65
Common mistake: thinking a rule that ignores a characteristic must treat everyone equally. A rule can be blind to group membership and still affect groups very differently, if its inputs are linked to that membership. Fairness has to be checked by measuring the outcomes, not assumed from the inputs.
Worked example 9: measuring the impact
At a threshold of 60, the screen in Figure 18.2 selects 17 of 20 applicants from group X and 11 of 20 from group Y. Find the selection rates and the impact ratio.
| Working | Reason |
|---|---|
| Group X rate = 17 ÷ 20 = 0.85 | The share of X selected |
| Group Y rate = 11 ÷ 20 = 0.55 | The share of Y selected |
| Impact ratio = 0.55 ÷ 0.85 = 0.65 | The lower rate divided by the higher |
| 0.65 is below 0.8, so the screen should be examined | A common warning sign of unfair impact |
Worked example 10: a different threshold
Lowering the threshold to 50 selects 19 from group X and 16 from group Y. Does the warning sign remain?
| Working | Reason |
|---|---|
| Rates = 19 ÷ 20 = 0.95 and 16 ÷ 20 = 0.8 | The new selection rates |
| Impact ratio = 0.8 ÷ 0.95 = 0.84 | The lower rate divided by the higher |
| 0.84 is above 0.8 | The warning sign is no longer triggered |
| But the screen now selects far more people | Fairness and cost must both be weighed |
Censorship and the internet
The internet lets anyone publish to the world, which has spread knowledge and given a voice to people who were never heard before. It also spreads harmful material: abuse, extremism, scams and false information. Governments and companies must decide what, if anything, to remove or block.
Censorship means restricting what people can publish or see. Some is widely accepted, such as removing images of child abuse or blocking illegal content. Some is deeply controversial, such as governments blocking news sites, social media or criticism of their leaders. Even well-meant filtering can block useful information, such as health advice. Deciding who sets the rules, and how they can be challenged, is a central question.
Different countries draw the line in different places, so the same website may be legal in one country and blocked in the next. A global platform must decide whether to follow each country's rules, apply one set of rules everywhere, or refuse to operate where it disagrees. Each choice has costs for users, for free expression and for the company.
Monitoring, piracy and offensive communications
Companies collect vast amounts of data about what people do online, to target advertising and to improve their products. Users often agree without reading the terms. This raises questions of consent, of whether people understand what they are giving away, and of what happens if the data is leaked or sold.
The ease of copying digital files makes piracy simple, which costs creators income. Online communication also makes it easy to send abusive or threatening messages, which can be crimes in their own right. Platforms face pressure to act quickly against both, while respecting free expression and avoiding the removal of lawful content.
Artificial intelligence raises these questions in new forms. Systems that write text, create images or hold conversations can spread false information quickly, imitate real people and produce work that copies others' style. They are trained on huge amounts of data gathered from the web, which raises questions of consent and copyright. Deciding who is responsible when such a system causes harm is one of the hardest current questions in computing ethics.
Check yourself. What does an impact ratio of 0.5 between two groups tell you?
Show the answer
One group is selected at half the rate of the other. That is well below 0.8, so it is a strong warning sign that the process may be unfair and should be examined.
Section 6
Environmental and cultural issues
Energy
Every device uses electricity, and so do the data centres that run websites, store files and train large computer models. Electricity generated from fossil fuels releases carbon dioxide, which drives climate change. The carbon released by each kilowatt-hour depends on how the electricity is made. The same computer has a smaller footprint where more of the power comes from wind, sun or water. The energy a device uses depends on its power, in watts, and how long it runs.
Here E is the energy in kilowatt-hours, P the power in watts and t the time in hours. Multiplying the energy by the price per kilowatt-hour gives the cost, and by the carbon released per kilowatt-hour gives the emissions.
Common mistake: thinking a device on standby uses no energy. A device on standby keeps some circuits powered so it can wake quickly. A few watts left on all day and night, in millions of homes, adds up to a great deal of energy over a year.
Worked example 11: the cost of standby
A games console uses 5 W on standby and is left on standby all year. Electricity costs 25p per kWh. Find the energy used and the cost.
| Working | Reason |
|---|---|
| Hours in a year = 24 × 365 = 8,760 | Standby all day, every day |
| Energy = 5 × 8760 ÷ 1000 = 43.8 kWh | Power times time, converted to kilowatt-hours |
| Cost = 43.8 × 25p = £10.95 | Energy times the price |
| Switching it off saves this every year | Standby is not free |
Worked example 12: a computer's carbon footprint
A gaming PC uses 300 W for 4 hours a day, every day of the year. Find its yearly energy, cost at 25p per kWh, and carbon at 0.2 kg per kWh.
| Working | Reason |
|---|---|
| Energy = 300 × 4 × 365 ÷ 1000 = 438 kWh | Power times hours per year, in kilowatt-hours |
| Cost = 438 × 25p = £109.50 | Energy times the price |
| Carbon = 438 × 0.2 = 87.6 kg | Energy times the carbon per kilowatt-hour |
| Renewable electricity would cut the carbon, not the energy | The emissions depend on how it is generated |
Derivation: energy, cost and carbon
Energy is power multiplied by time. With power P in watts and time t in hours, dividing by 1000 converts watt-hours into kilowatt-hours.
The cost and the carbon are both proportional to the energy, with c the price per kilowatt-hour and g the carbon released per kilowatt-hour.
So halving the power or the hours of use halves all three. For the gaming PC, E = 438 kWh, the cost is £109.50 and the carbon is 87.6 kg each year.
Electronic waste
Devices are often replaced after only a few years, because new models appear, batteries wear out or software stops being supported. Discarded electronics, e-waste, contain valuable metals such as gold and copper, but also harmful ones such as lead and mercury. Much e-waste is shipped to poorer countries, where it may be broken up by hand without protection, harming workers and the environment.
Manufacturers, users and governments can all reduce e-waste. Devices can be designed to be repaired, with replaceable batteries and available parts. Software can be supported for longer, so that hardware stays useful. And old devices can be refurbished, reused or properly recycled. Laws in many countries now require shops to take back old electronics.
Computing can also help the environment. Smart heating systems cut energy use, sensors help farmers use less water and fertiliser, and video calls replace some journeys. Modelling the climate itself needs some of the most powerful computers in the world. A fair judgement weighs these benefits against the energy and materials that computing uses.
The digital divide
The digital divide is the gap between people who have good access to computers and the internet and those who do not. It divides rich and poor, cities and the countryside, young and old, and wealthy and developing countries. As more services move online, from banking to job applications to doctors' appointments, people without access, skills or confidence are left further behind.
Closing the divide means more than providing hardware. People need affordable connections, training and services designed to be easy for everyone to use. Keeping offline options, such as telephone and face-to-face services, matters for those who cannot or will not go online.
Accessibility is part of the same question. People with visual, hearing, motor or learning disabilities may be excluded by websites and apps that are badly designed. Screen readers, captions, keyboard navigation and clear layouts allow everyone to use a service, and the law requires many organisations to make reasonable adjustments. Designing for accessibility from the start usually makes a system better for every user.
Cultural issues
Computing spreads across cultures, and design choices that seem natural in one culture may not suit another. Text in some languages runs right to left. Colours carry different meanings: white is linked with weddings in some cultures and with mourning in others. Symbols, names and date formats differ. Software made for a global audience must allow for these differences, a process called localisation.
Technology also changes cultures. Social media shapes how people form friendships and get their news, and global platforms can crowd out local languages and businesses. Online services can bring people together across the world, but also concentrate influence in a few large companies. These effects are part of any judgement about a new technology.
Check yourself. How much energy does a 65 W laptop use in an 8-hour working day?
Show the answer
The energy is 65 × 8 ÷ 1000 = 0.52 kWh, a little over half a kilowatt-hour.
Reference
Key algorithms and definitions
| Term or algorithm | What it means | Example | Cost or rule to learn |
|---|---|---|---|
| Personal data | Data about an identifiable living person | A name, a photo, a location | Protected by data protection law |
| Data protection principles | Lawful, fair, limited, accurate, secure | Delete data no longer needed | Breach reported within 72 hours |
| Maximum fine | Higher of a fixed sum and a share of turnover | £1 billion turnover gives £40 million | max(£17.5m, 4% of T) |
| Computer Misuse Act | Unauthorised access and acts | Hacking, malware, DDoS | Up to 2, 5, 10 or 14 years, or life |
| Copyright | Control over copying creative work | Software as a literary work | Life plus 70 years |
| Licences | Permission on stated terms | Proprietary or open source | Both still under copyright |
| Interception powers | Lawful monitoring with safeguards | A warrant for interception | Authorised bodies only |
| Impact ratio | Lower selection rate ÷ higher | 0.55 ÷ 0.85 = 0.65 | Below 0.8 is a warning sign |
| Energy use | Power times time | 300 W for 4 hours a day | E = Pt ÷ 1000 kWh |
| Digital divide | Unequal access to technology | Services only online | Keep offline options |
Programming task
Programming task: a fairness checker
Aim
Write a Python program that applies a threshold to the scores of applicants from two groups. It must report how many from each group are selected, the selection rates and the impact ratio, and flag the result if the ratio is below 0.8.
Design
The scores of each group are stored in a list. A function counts the scores at or above the threshold. The selection rate of a group is the count divided by the size of the group. The impact ratio is the lower rate divided by the higher, and is taken as 1 when nobody is selected from either group.
The program can also try every threshold in a range and report which ones pass the 0.8 test. The people choosing the threshold can then see the effect of their choice on both groups.
Code
group_x = [45, 52, 58, 61, 63, 66, 68, 70, 72, 74, 75, 77, 79, 81, 83, 85, 88, 90, 92, 95]
group_y = [38, 41, 44, 47, 50, 53, 55, 57, 59, 62, 64, 65, 67, 69, 71, 73, 76, 78, 82, 86]
def selected(scores, threshold):
return sum(1 for s in scores if s >= threshold)
def check(threshold):
rate_x = selected(group_x, threshold) / len(group_x)
rate_y = selected(group_y, threshold) / len(group_y)
high, low = max(rate_x, rate_y), min(rate_x, rate_y)
ratio = 1 if high == 0 else low / high
flag = "examine" if ratio < 0.8 else "passes"
return rate_x, rate_y, round(ratio, 2), flag
for t in range(40, 95, 10):
print(t, check(t))
Using a generator inside sum counts the scores that pass without building a separate list. Rounding the ratio to two decimal places makes the output easy to read, while the test against 0.8 uses the unrounded value.
Testing
| Test | Input | Expected output | Why this test |
|---|---|---|---|
| 1 | threshold 60 | X 17, Y 11, ratio 0.65, examine | Matches worked example 9 |
| 2 | threshold 50 | X 19, Y 16, ratio 0.84, passes | Matches worked example 10 |
| 3 | threshold 70 | X 13, Y 6, ratio 0.46, examine | A stricter screen |
| 4 | threshold 80 | X 7, Y 2, ratio 0.29, examine | A very strict screen |
| 5 | threshold 30 | X 20, Y 20, ratio 1, passes | Everyone selected |
| 6 | threshold 100 | X 0, Y 0, ratio 1, passes | Nobody selected, no division by zero |
| 7 | equal score lists | ratio 1 | Identical groups are treated equally |
Evaluation
The checker gives the expected selection counts and ratios for every test, including the extreme cases in tests 5 and 6, where it avoids dividing by zero. Running it across a range of thresholds shows how the choice of threshold changes the impact on each group.
Passing the 0.8 test does not prove a process is fair, and failing it does not prove it is unfair; it is a warning sign that calls for investigation. An improvement would also compare the accuracy of the decisions for each group. A process can select equal shares but still make more mistakes about one group than the other.
Practice
Practice ladder
Rung 1: Recall and fluency
Q1. State three principles of data protection law.
Worked solution to Q1
Personal data must be processed lawfully, fairly and transparently. Only the data needed for the purpose should be collected, and it must not be kept for longer than necessary. It must also be kept accurate and secure.
Q2. State what section 1 of the Computer Misuse Act makes illegal.
Worked solution to Q2
Section 1 makes it an offence to access computer material without authorisation, such as logging into another person's account. No damage needs to be done; the unauthorised access is the crime.
Q3. Describe the difference between proprietary and open source software.
Worked solution to Q3
Proprietary software is licensed without its source code, and users may not change or share it. Open source software publishes its source code under a licence that lets anyone read, change and share it.
Rung 2: Application
Q4. Find the maximum fine for a serious breach of the principles by a company with a turnover of £3 billion.
Worked solution to Q4
The percentage cap is 4% of £3,000 million, which is £120 million. That is higher than the fixed sum of £17.5 million, so the maximum fine is £120 million.
Q5. A small charity with a turnover of £50 million seriously breaches the principles. Find the maximum fine.
Worked solution to Q5
The percentage cap is 4% of £50 million, which is only £2 million. The fixed sum of £17.5 million is higher, so the maximum fine is £17.5 million.
Q6. A 300 W games console is used for 2 hours a day for a year. Find the energy it uses.
Worked solution to Q6
It runs for 2 × 365 = 730 hours a year. The energy is power times time, 300 × 730 ÷ 1000 = 219 kWh, half that of the gaming PC in worked example 12.
Q7. A screen selects 12 of 30 applicants from one group and 18 of 30 from another. Find the impact ratio.
Worked solution to Q7
The selection rates are 12 ÷ 30 = 0.4 and 18 ÷ 30 = 0.6. The impact ratio is the lower divided by the higher, 0.4 ÷ 0.6, which is about 0.67, below the 0.8 warning level.
Rung 3: Analysis
Q8. A hacker accesses a company's network without permission in order to steal customers' card details. Which section of the Computer Misuse Act applies, and why?
Worked solution to Q8
Section 2 applies, because the access was made with intent to commit a further serious offence, fraud using the card details. It carries a heavier maximum, 5 years, than simple unauthorised access under section 1.
Q9. Explain why a company with a worldwide turnover of £2 billion faces a far higher maximum fine than one with £200 million.
Worked solution to Q9
The cap is the higher of £17.5 million and 4% of turnover. For £2 billion, 4% is £80 million, while for £200 million it is only £8 million, so the smaller firm's cap stays at £17.5 million.
Q10. A retailer's loan system uses postcode but not ethnicity. Explain how it could still be biased.
Worked solution to Q10
Postcode is linked to ethnicity in many areas, because people of different backgrounds often live in different places. So a rule using postcode can treat ethnic groups very differently, even though ethnicity itself is never used.
Q11. A school leaves 120 computers on overnight, 14 hours each, at 40 W. Find the energy wasted each night and its cost at 25p per kWh.
Worked solution to Q11
The energy for one night is 120 × 40 × 14 ÷ 1000 = 67.2 kWh. At 25p per kilowatt-hour that costs 67.2 × 25p = £16.80 every night, or several thousand pounds a year.
Rung 4: Stretch
Q12. Using the derivation, find the turnover above which 2% sets the standard-tier cap rather than £8.7 million.
Worked solution to Q12
The two caps are equal where 0.02T = 8.7 million, so T = 8.7 ÷ 0.02 = £435 million. Above this turnover, 2% of turnover is higher than the fixed sum and sets the cap.
Q13. A program's author died in 1990. When does its copyright end, and when can anyone copy it freely?
Worked solution to Q13
Protection lasts until the end of the 70th year after the year of death, which is 1990 + 70 = 2060. So it is protected until 31 December 2060, and anyone may copy it from 1 January 2061.
Q14. Discuss briefly whether end-to-end encryption should include a way for the authorities to read messages.
Worked solution to Q14
Supporters say lawful access would help catch serious criminals who use encrypted apps. Critics reply that any way in could be found and misused by criminals or hostile states, weakening security for everyone, so most security experts oppose it.
Exam practice
Exam technique and worked answer workshop
When a question names a law, say which part of it applies and why. "This is a section 1 offence, because the student accessed the account without permission" earns more than "it is illegal". Quote the principle or section by what it does, not just its number.
For ethical discussions, identify the stakeholders, give benefits and harms for each, and reach a justified conclusion. There is rarely one right answer; marks come from weighing both sides and linking every point to the scenario.
For calculations, state the formula first, such as the higher of the fixed sum and the percentage, or energy equals power times time, then substitute and give units.
Exam question 1 (4 marks · Paper 01 · about 5 minutes)
A shop collects customers' names, addresses and dates of birth for deliveries.
(a) Explain two ways the shop must follow the data protection principles. [2]
(b) Explain what the shop must do if its customer database is stolen. [2]
Mark scheme for exam question 1
- B1 it should collect only data it needs for deliveries; dates of birth may not be needed
- B1 it must keep the data secure, accurate, and no longer than necessary
- B1 report the breach to the ICO without undue delay, within 72 hours where feasible
- B1 tell the customers affected if the breach is likely to put them at high risk
Exam question 2 (5 marks · Paper 01 · about 7 minutes)
A firm whose worldwide annual turnover is £1 billion seriously breaches the data protection principles.
(a) Calculate the maximum fine it faces. [3]
(b) Calculate the turnover above which the percentage, rather than the fixed sum, sets the cap. [2]
Mark scheme for exam question 2
- M1 4% of £1 billion = £40 million
- M1 compared with the fixed sum of £17.5 million
- A1 £40 million
- M1 17.5 million ÷ 0.04
- A1 £437.5 million
Exam question 3 (5 marks · Paper 01 · about 7 minutes)
A student guesses a teacher's password, logs in, and changes several pupils' marks.
(a) Identify two offences under the Computer Misuse Act, explaining each. [4]
(b) State the maximum sentence for the more serious offence. [1]
Mark scheme for exam question 3
- B1 section 1, unauthorised access to computer material
- B1 because the student logged in without permission
- B1 section 3, an unauthorised act that impairs the computer's operation or data
- B1 because the marks were changed
- B1 10 years
Exam question 4 (4 marks · Paper 01 · about 5 minutes)
(a) Explain how copyright protects a computer program. [2]
(b) Give one advantage and one disadvantage of releasing a program as open source. [2]
Mark scheme for exam question 4
- B1 the program is protected as a literary work, automatically, from when it is written
- B1 others may not copy, share or adapt it without permission, usually given by a licence
- B1 advantage: others can find and fix bugs, improve it and adapt it
- B1 disadvantage: it is harder to earn money from sales, and competitors can use the code
Exam question 5 (6 marks · Paper 01 · about 9 minutes)
A bank plans to replace its loan officers with a computer system that decides loan applications automatically. Discuss the ethical issues this raises.
Mark scheme for exam question 5
Level 3 (5–6 marks): a balanced discussion of the benefits and harms for different stakeholders. It covers employment, speed and consistency, bias and fairness, transparency and the right to challenge decisions. The answer reaches a justified conclusion. It is well organised and uses technical terms accurately.
Level 2 (3–4 marks): several relevant issues with some link to the bank. The discussion is one-sided or the conclusion is limited.
Level 1 (1–2 marks): some relevant points, such as job losses, with little development. The answer may lack structure.
0 marks: no response or no response worthy of credit.
Indicative content:
- decisions become faster, cheaper and more consistent, which benefits customers and the bank
- loan officers may lose their jobs, though new jobs may arise in building and checking the system
- a system trained on past decisions may repeat past bias against some groups
- inputs such as postcode can be linked to protected characteristics, so bias can appear without them
- the bank should measure outcomes for different groups, for example with impact ratios
- customers may not understand why they were refused, if the system cannot explain its decisions
- data protection law gives people the right to challenge some decisions made solely by a computer and ask for human review
- the system holds sensitive financial data, which must be kept secure
- conclusion: automation is acceptable only with testing for bias, explanations and a human route of appeal
Annotated model answer: exam question 5
"An automated system would decide loans faster and more consistently, which helps customers and cuts the bank's costs. But the loan officers may lose their jobs. The bank should consider retraining them to check and run the new system." (Benefits and a harm, with a stakeholder each.)
"A system trained on the bank's past decisions could repeat any unfairness in them. Even if it never uses ethnicity, inputs such as postcode are linked to it. So the bank should measure the outcomes for each group, for example with impact ratios." (Bias, explained and measured.)
"Customers who are refused may not understand why. The law gives them the right to challenge some decisions made entirely by a computer and ask for a human review." (Transparency and the right to challenge.)
"So the bank can automate fairly only if it tests the system for bias, explains its decisions and keeps a human route of appeal." (A justified conclusion.)
This answer reaches Level 3 and scores 6 marks. It considers several stakeholders and reaches a conditional judgement grounded in the points made.
Exam question 6 (5 marks · Paper 01 · about 7 minutes)
A gaming PC uses 300 W for 4 hours a day, every day of the year. Electricity costs 25p per kWh and releases 0.2 kg of carbon dioxide per kWh.
(a) Calculate the energy used in a year. [2]
(b) Calculate the cost and the carbon dioxide released. [2]
(c) Suggest one way to reduce the environmental impact. [1]
Mark scheme for exam question 6
- M1 300 × 4 × 365 ÷ 1000
- A1 438 kWh
- B1 £109.50
- B1 87.6 kg
- B1 use it less, switch it off rather than leaving it on standby, or use renewable electricity
Exam question 7 (5 marks · Paper 01 · about 7 minutes)
(a) Describe the digital divide. [2]
(b) Explain one way of reducing it. [2]
(c) Give one example of a cultural issue that software designed for many countries must consider. [1]
Mark scheme for exam question 7
- B1 the gap between people who have good access to computers and the internet and those who do not
- B1 for example between rich and poor, or rural and urban areas, or older and younger people
- B1 provide affordable access or training, or keep offline versions of services
- B1 so that people without access, skills or confidence are not left behind
- B1 text direction, the meanings of colours or symbols, date formats or language
Exam question 8 (6 marks · Paper 02 · about 9 minutes)
The scores of applicants from two groups are stored in arrays x and y, each of length n. Write a function impactRatio(x, y, n, threshold) that returns the impact ratio of a screen that selects scores at or above the threshold. It should return 1 if neither group has anyone selected.
Mark scheme for exam question 8
- B1 a function header with the four parameters
- B1 two counts starting at 0
- B1 a loop over all n applicants, counting scores at or above the threshold in each group
- B1 the selection rates found by dividing each count by n
- M1 the lower rate divided by the higher
- A1 1 returned when both counts are 0, avoiding division by zero
Annotated model answer: exam question 8
function impactRatio(x, y, n, threshold)
countX = 0
countY = 0
for i = 0 to n - 1
if x[i] >= threshold then countX = countX + 1 endif
if y[i] >= threshold then countY = countY + 1 endif
next i
rateX = countX / n
rateY = countY / n
if rateX == 0 AND rateY == 0 then
return 1
endif
if rateX < rateY then
return rateX / rateY
endif
return rateY / rateX
endfunction
The header and the two counts earn the first two marks, and the loop that counts each group earns the third. Dividing by n earns the fourth, and dividing the lower rate by the higher earns the method mark. Returning 1 when nobody is selected avoids dividing by zero and earns the last.
Connections
Synoptic link
Data protection law requires personal data to be kept secure, using the defences of Network security and threats and the encryption and hashing of Compression, encryption and hashing. The Computer Misuse Act turns the attacks of Network security and threats into crimes.
Feasibility studies in Software development methodologies include legal feasibility, checking a new system against these laws before it is built. The energy figures here connect to the performance of Processor architecture and performance, since faster, more efficient processors can do the same work with less energy.
Synoptic question 1. A data centre uses 2 MW continuously. How much energy does it use in a year, in kilowatt-hours?
Answer to synoptic question 1
Two megawatts is 2,000,000 W, and a year is 8,760 hours. The energy is 2,000,000 × 8,760 ÷ 1000 = 17,520,000 kWh, about 17.5 million kilowatt-hours.
Recap
Recap and next step
- Data protection law requires personal data to be handled lawfully, fairly, minimally, accurately and securely. Breaches are reported within 72 hours, and the cap on fines is the higher of a fixed sum and a share of turnover.
- The Computer Misuse Act makes unauthorised access, access with intent, acts that impair computers, acts causing serious damage, and supplying tools all crimes.
- Copyright protects software as a literary work for the author's life plus 70 years; licences, proprietary or open source, set what users may do.
- Interception and monitoring are allowed only for authorised bodies and purposes, with warrants and oversight, and must be proportionate.
- Automation, automated decisions, bias, censorship and monitoring raise ethical questions that must be weighed for every stakeholder; impact ratios below 0.8 are a warning sign.
- Energy use is E = Pt ÷ 1000 kWh; e-waste, the digital divide and cultural differences must also be considered.
Next chapter: Computational thinking looks at the ways of thinking behind every program: abstraction, decomposition, thinking ahead and thinking logically.
For your exam board
OCR A Level Computer Science (H446): this chapter covers sections 1.5.1, Computing related legislation, and 1.5.2, Moral and ethical issues, in Component 01: the Data Protection Act, the Computer Misuse Act, the Copyright, Designs and Patents Act and the Regulation of Investigatory Powers Act, and the issues of automation, decision making, AI, environmental effects, censorship, monitoring, piracy and cultural differences.
AQA A Level Computer Science (7517): the consequences of uses of computing section covers the moral, ethical, legal and cultural issues raised by computing, including the challenges that technology poses to legislation, assessed on Paper 2.