An automated drone uses the following algorithm written in pseudocode to monitor its fuel level during flight:
1 SET active TO True
2 REPEAT WHILE active == True
3 SET fuel_level TO READ_SENSOR()
4 IF fuel_level < 15 THEN
5 DISPLAY "Low Fuel Warning"
6 END IF
7 END REPEAT
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.