OCR Computing A-Level Revision

Errors

Types of Errors (2.6.a)

There are three main types of errors which will be found in programs:

 

if scores[a] > scores[b]:  
    points[a] += 3  
if scores[a] < scores[b]:  
    points[b] += 3