Skip to content

Course home

Robust and secure programming

Robust and secure programming

EasyMediumHard
12345678
Question 5

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 numberTest typeTest dataExpected result
1Erroneous120
2Boundary
3NormalSpeed accepted
[3]
Markscheme

Robust and secure programming Questions

  1. GCSE
  2. /Computer Science
  3. /Robust and secure programming

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.

Question bank