Skip to content

Course home

Sign up

Input/output

EasyMediumHard
123456789101112131415
Question 11

A monitoring program uses the following code to validate the pressure differential in an extraction system:

01 pressure = int(input("Enter pressure differential in Pa: "))
02 if pressure < -45:
03     print("System unstable: Pressure too low")
04 else:
05     print("System pressure within normal parameters")

State the largest integer the user could enter on line 01 to cause the message 'System unstable: Pressure too low' to be displayed.

[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