3.2: Testing

Exam Board:
OCR

Specification:
2020

The purpose of testing

Types of Testing

This page is still being updated.

Iterative Testing

What is iterative testing

Final / Terminal Testing

What is final / terminal testing

Programming Errors

Syntax Error

Logical Error

A syntax error is a mistake in the grammar or spelling of the program.

A syntax error will prevent the program from being compiled.

Examples: 

Incorrect Spelling:

pront ("hello")

Incorrect punctuation:

print ("hello"(

A logical error is a mistake made by the programmer - the program still works but displays the wrong output.

Examples: 

Incorrect calculation:

total = num1 - num2

print (total)

Incorrect variable printed:

age = 16

name = "Steve"

print ("Nice to meet you" , age)

Test Data

Test Data

Questo's Questions

3.2 - Testing:

1. Give. [4]