A chemical plant engineer writes a control script designed to monitor a reactor's temperature, but accidentally creates an infinite loop:
SET temperature TO 95
WHILE temperature >= 80
OUTPUT "Reactor status: Stable..."
ENDWHILE
State one action the engineer can take to force this program to stop running when it is executing in an Integrated Development Environment (IDE) or command line console.
51 exam-style questions on Edexcel GCSE Computer Science Develop code, covering Decomposition and abstraction to solve problems, Read, write, analyse and refine programs, Converting algorithms into programs, Techniques for readable, maintainable code, Identifying and correcting program errors, and Evaluating program fitness and efficiency. Each one has a worked solution and a mark scheme showing where the marks go.