A software engineer writes the following algorithm in pseudocode to monitor a steam boiler's pressure sensor:
1 SET alert_active TO True
2 WHILE alert_active == True DO
3 SET boiler_pressure TO READ_SENSOR()
4 IF boiler_pressure > 180 THEN
5 SEND "DANGER: Extreme pressure detected!" TO OPERATOR
6 END IF
7 END WHILE
Identify the line number (or write out the line of pseudocode) that contains the loop condition that causes this loop to run infinitely.
50 exam-style questions on Edexcel GCSE Computer Science Constructs, covering Structural components of programs and Writing programs with control constructs. Each one has a worked solution and a mark scheme showing where the marks go.