Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Free lesson

OSP task 1 (3 of 3): Sources, risks and the law

The whole lesson, free. Read it and have a go at the activities. To work the tasks and labs in the real lesson, press Start lab, with no account needed.

45 minutes

A quick check that you are not a bot, then your own lab opens on the interactive lesson.

Already have an account? Sign in

Three questions before you build

Before a developer builds, they ask three questions.

  1. Can I trust this information? 2. What could go wrong? 3. What do the law and fairness say?

A project that answers these three is safer, and it earns marks for PO5 and PO6.

Key words

WordWhat it meansExample
SourceWhere information comes from.a government website
ReliableChecked and true, so you can trust it.official documentation
MitigationWhat you do to make a risk smaller.keep a backup
LikelihoodHow likely it is that the risk happens.3 means very likely
ImpactHow bad it is if the risk happens.3 means very bad
Contingency planWhat you do if the risk happens anyway.use the backup copy
EthicsChoosing what is right and fair.do not hide a fault from users
BiasA result that is unfair to some people.a form that only fits some names
Personal dataFacts about a real person.name, phone number
GDPRUK rules about how to use personal data.keep only what you need
CopyrightThe right of the maker to control copies of their work.a photo or a piece of code
LicencePermission to use something under stated rules.an open source licence
Open sourceCode that anyone may read and use under a licence.Python

The cells students fill in are left blank in this preview.

Eight places to look

PlaceGood forTake care
Search engineFinding pages fastThe top result is not always the best one
Wiki (a site anyone can edit, like Wikipedia)A quick overviewAnyone may edit it. Check its sources
BlogReal examples from developersIt is one person's opinion
Academic paper (a report by researchers)Careful, tested findingsIt can be hard to read, and it may be old
Classmates and friendsFast help from people you knowThey can be wrong too
Forum (a site where people ask and answer questions)Answers to a very exact problemCheck the date and the votes
Code commentsWhy the code was written this wayThe code may have changed since
Code repository (a place that stores code)Real code and its historyCheck the licence before you copy

The cells students fill in are left blank in this preview.

How reliable is the source?

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Five checks for a source

CheckQuestion
WhoWho wrote it? Do they know the subject?
WhenWhen was it written? Is it still true?
ProofDoes it show evidence or give examples?
AgreeDo other good sources say the same?
WhyWhy was it written? To teach, or to sell?

The cells students fill in are left blank in this preview.

Note where each fact came from

Tip

Write the source name, the page address and the date you read it. Then anyone can check. If you use another person's code or text, say so and check the licence.

Check: can you trust the source?

Have a go

Check: can you trust the source?

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Worked example: score a risk (x means multiply)

RiskLikelihood (1 to 3)Impact (1 to 3)Score (likelihood x impact)Level
Data file is lost232 x 3 = 6high
The build takes longer323 x 2 = 6high
A name is typed wrong313 x 1 = 3medium
The colours are not nice111 x 1 = 1low

The cells students fill in are left blank in this preview.

All nine scores in one picture

Likelihood (down), impact (across)Impact 1Impact 2Impact 3
Likelihood 11 low2 low3 medium
Likelihood 22 low4 medium6 high
Likelihood 33 medium6 high9 high

The cells students fill in are left blank in this preview.

Check: score a risk

Have a go

Check: score a risk

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Score the risks with code

Write three functions for a risk register. risk_score multiplies likelihood and impact. risk_level gives low for 1 or 2, medium for 3 or 4, and high for 5 or more. worst_risk gives the name of the risk with the highest score, or None for an empty list. Press Run Tests to check your work.

Code: python
def risk_score(likelihood, impact):
    # likelihood and impact are whole numbers from 1 (low) to 3 (high).
    # The score is likelihood times impact.
    return None


def risk_level(score):
    # 1 or 2 is "low". 3 or 4 is "medium". 5 or more is "high".
    return None


def worst_risk(risks):
    # risks is a list like [("Data loss", 2, 3), ("Late finish", 3, 2)]
    # Each is (name, likelihood, impact).
    # Give back the name of the risk with the highest score.
    # If two are equal, give back the one that comes first in the list.
    # Give back None for an empty list.
    return 0

Make a free account to save your work, or press Start lab to work through the whole lesson.

UK laws that touch a project

LawIn simple wordsWhat it means for the club tool
UK GDPR and the Data Protection Act 2018Rules for using personal dataKeep only what you need. Keep it safe. Tell people why.
Computer Misuse Act 1990It is a crime to get into a computer system without permissionOnly use the system you are allowed to use.
Copyright, Designs and Patents Act 1988Makers own their workCheck a licence before you copy code or pictures.
Equality Act 2010People must be treated fairlyMake the tool usable by people with different needs.
Software licencesA licence says what you may do with code or picturesRead it before you use or share anything.
Standards: W3C and ISO/IEC/IEEE 90003:2018W3C sets web standards. 90003 is about software quality.Ask which standards the client expects.

The cells students fill in are left blank in this preview.

More rules to check

Note

The specification also lists consumer protection, age ratings, advertising, gambling, staff and employment rules, where software may be sold, and system security. Not every rule fits every project. Choose the ones that fit the scenario and say why.

Match the law to the situation

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Task 1 practice: your risk register

Make a risk register for the Hillside waiting list project. Use a table with the columns: Risk, Likelihood, Impact, Score, Level, Mitigation. Write at least six risks. Include at least one about personal data, one about the law or a licence, and one about fairness. Also think about harm done on purpose and by accident, other systems that must work with yours, and time. Add two more columns: Plan B (what you do if it happens) and How I will watch it. Then list two sources you would use, say how reliable each is, and why.

A teacher marks this in a college. Nothing you write here is kept: it goes when you leave the page.

Make a free account to save your work, or press Start lab to work through the whole lesson.

Key words crossword

Have a go

Loading…

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Final check

Have a go

Final check

5 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Teach this lesson with your class

On a college account your students work the tasks and the labs as well, and every mark is kept for you.