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

Expected vs actual

301.13 Testing

Practise exam questions

Testing — Note 4 of 6

Compare predicted output.

What you need to know

Before running a test, predict the expected output. Then run the program and compare with the actual output. If they differ, there is a bug to investigate.

What to know

  • Expected: what the output should be based on the spec
  • Actual: what the program really outputs
  • Match = test passed, mismatch = bug found
  • Record both in a test table for documentation

Code examples

Expected vs actual
python
# Test: input 15 into age checker (pass mark >=18)
# Expected output: "Minor"
# Actual output: "Minor" ✓ PASS

# Test: input 18
# Expected: "Adult"
# Actual: "Minor" ✗ FAIL — bug in condition
← Previous noteDry run tracing301.13 TestingNext note →Test tables301.13 Testing

Back to Testing

Specification notes for programming are in Paper 2.

Testing

Note 4 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).