Skip to content

Study Hub

Study Guides

This pupil-friendly study guide includes a unit summary, clear notes, common mistakes, and quick questions with answers.

Year 10 - Computing

Programming project: subroutines II

Programming: subroutines

Unit Summary

In this unit pupils will be introduced to structured programming. They will explore the differences between functions and procedures and use functions to return values in programs. They will be introduced to the concept of scope and how parameters can be used to reduce the need for global variables.

Lesson Summary

You will learn to implement a program from a design and perform testing to ensure it works as expected.

Key Notes

  • Implementation of solution is where you take a plan and create the solution.
  • A program should be tested with a range of test data.
  • Erroneous data is data that should not be accepted by the program or it will cause an error.
  • Boundary data is data that should either be accepted or rejected by a program.
  • Normal data is data that should be accepted by a program. This is data that you would expect a user to enter.

Vocabulary To Learn

  • erroneous: data that should not be accepted by the program or it will cause an error
  • boundary: data that should either be accepted or rejected by a program, it tests the data right at the boundary of a range
  • normal: data that should be accepted by a program, this is data that you would expect a user to enter

Common Mistakes To Avoid

  • A system should only be tested with normal data that will be expected. If it works with normal data it will work all the time.

3 Quick Questions (With Answers)

1. Describe the system or process from this lesson in clear steps.

Implementation of solution is where you take a plan and create the solution. A program should be tested with a range of test data.

2. Define this computing term and give one practical example. 'erroneous'

data that should not be accepted by the program or it will cause an error. Add one real device or system example to prove understanding.

3. Correct this common computing misconception.

Mistake: A system should only be tested with normal data that will be expected. If it works with normal data it will work all the time. Correction: A system should be tested with a range of test data, including erroneous data that is not meant to be accepted. Programs should make sure that there is no way to stop the software from working if invalid inputs are entered.

More Lessons In This Unit

Browse all guides in the Year 10 Computing guide library.