Complete the test plan in Table 1 to test the validation of speed in the program in Figure 1.
Figure 1
speed = int(input("Enter speed limit between 50 and 80: "))
while speed < 50 or speed > 80:
print("Invalid speed")
speed = int(input("Enter speed limit between 50 and 80: "))
print("Speed accepted")
Table 1
| Test number | Test type | Test data | Expected result |
|---|---|---|---|
| 1 | Erroneous | 120 | |
| 2 | Boundary | ||
| 3 | Normal | Speed accepted |
27 exam-style questions on AQA GCSE Computer Science Robust and secure programming. Each one has a worked solution and a mark scheme showing where the marks go.