Skip to content

Course home

Robust and secure programming

Robust and secure programming

EasyMediumHard
12345678
Question 6

Complete the test plan in Table 1 to test the validation of pressure in the program in Figure 1.

Figure 1

pressure = int(input("Enter pressure between 12 and 35 bar: "))
while pressure < 12 or pressure > 35:
    print("Pressure out of range")
    pressure = int(input("Enter pressure between 12 and 35 bar: "))
print("Pressure verified")

Table 1

Test numberTest typeTest dataExpected result
1Erroneous5
2Boundary
3NormalPressure verified
[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