Question bank › GCSE Computer Science › Producing robust programs

Testing: test data, test plans, errors

Answer on paper first, then reveal the mark scheme one mark at a time.

1Grade 4–54 marks

A program accepts a whole number from 1 to 100 inclusive.

Give an example of each type of test data for this program.

(a) Normal [1] (b) Boundary [1] (c) Invalid [1] (d) Erroneous [1]

2Grade 4–54 marks

(a) Describe what is meant by iterative testing. [2]

(b) Describe what is meant by final (terminal) testing. [2]

3Grade 6–75 marks

This program should output the average of 5 numbers.

01 total = 0
02 for i = 1 to 5
03     num = int(input("Enter number"))
04     total = total + num
05 next i
06 average = total / 4
07 print("Average is " + str(average)

(a) State what is meant by a syntax error. [1]

(b) Identify the line number of the logic error and write the corrected line. [2]

(c) Identify the line number of the syntax error and write the corrected line. [2]

Still losing marks on this topic?

Book a free introductory session and we'll find exactly which step is costing you.

Book a free intro