Skip to content

Course home

Sign up

Input/output

EasyMediumHard
123456789101112131415
Question 9

The user enters a value representing a booking discount rate. The discount is a decimal, where 0.05 represents a 5% discount. This allowed discount must be between 0.00 (0%) and 0.40 (40%) inclusive. The entered value needs to be validated.

Construct two different validation tests. Test data for Test 1 is provided in the table.

Complete the table by filling in (a), (b), and (c).

TestValidation testTest data
Test 1
a.

| 0.45 | | Test 2 |

[1]
b.

|

[1]
c.

|

[1]
Markscheme

Input/output Questions

  1. GCSE
  2. /Computer Science
  3. /Input/output

25 exam-style questions on Edexcel GCSE Computer Science Input/output, covering Accepting and responding to user input, Reading and writing CSV text files, Implementing validation, and Implementing authentication. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank