← AQA GCSE

Testing: AQA GCSE practice

Normal, boundary and erroneous data. 11 questions in the style of the AQA GCSE exam.

Sample questions

A program accepts ages from 13 to 19 inclusive. Which of these is boundary test data?

  1. 15
  2. 19
  3. "abc"
  4. 50

This code tests a validation function with some test data. What does it print?

def valid_mark(m):
    return 0 <= m <= 50

for test in [25, 0, 50, 51, -1]:
    print(test, valid_mark(test))

A program asks for the number of tickets to buy. The user types "ten". Which type of test data is this?

  1. Typical
  2. Boundary
  3. Erroneous
  4. Normal