Technology and society · GCSE · OCR J277 1.6.1, AQA 8525 3.8, Edexcel 1CP2 5.2.1 · about 15 min
What personal data is, the Data Protection Act 2018, and anonymising a log.
[1 mark]Which of these is personal data?
[1 mark]Which law protects personal data in the UK?
[1 mark]What does data minimisation mean?
[1 mark]Which is a right people have over their own data?
[1 mark]A school keeps robot logs with names for ten years. Which principle does this break?
[1 mark]What does this program print?
rows = [('Sam', 240), ('Ava', 180)]
for n, (name, cm) in enumerate(rows, start=1):
print(f'student {n}: {cm} cm')Each row of log is a name, an email and a distance in centimetres. Print an anonymised line for each, in the form student 1: 240 cm, numbering the students from 1 in the order they appear. Then print records: <n> and total: <n> cm. Nothing in the output may contain a name or an email.
# the two lines every program starts with: the commands, then the robot
from bugbot import *
connect()
# name, email, distance in cm
log = [
("Sam Patel", "sam@school.uk", 240),
("Ava Ng", "ava@school.uk", 180),
("Jo Reilly", "jo@school.uk", 95),
("Kit Hale", "kit@school.uk", 310),
]Plan your program here, then type it in and press Run.