Signed up recently but had issues with the confirmation email?

Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.

Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.

Revision notesQuestionsFor schools
Revise Computing
Log inStart revising free
Revision notesQuestionsFor schoolsLog in
GCSE Computer Science/Supplementary programming practice/Testing

Why test?

301.13 Testing

Practise exam questions

Testing — Note 1 of 6

Purpose of software testing.

What you need to know

Testing checks that a program works correctly under different conditions. Without testing, bugs can go unnoticed and cause incorrect results or crashes.

What to know

  • Testing finds errors before users do
  • Test with a range of inputs, not just obvious ones
  • Even code that 'looks right' can have logic errors
  • Testing should be systematic, not random

Code examples

Untested bug example
python
# This looks correct but fails for negative numbers
def is_even(n):
    return n % 2 == 0

print(is_even(4))   # True ✓
print(is_even(-3))  # False ✓
# Always test edge cases!
← Previous topicScope + parameters301.12 SubprogramsNext note →Test data types301.13 Testing

Back to Testing

Specification notes for programming are in Paper 2.

Testing

Note 1 of 6

  1. 1Why test?
  2. 2Test data types
  3. 3Dry run tracing
  4. 4Expected vs actual
  5. 5Test tables
  6. 6Debugging
Topic overview

© 2026 Revise Computing · revisecomputing.co.uk

Worried about something?Question Bank UpdatesPrivacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).