A programmer writes the following algorithm in pseudocode to continually monitor a digital thermometer:
1 SET running TO True
2 WHILE running == True DO
3 SET temperature TO USERINPUT
4 SEND "Temperature recorded" TO DISPLAY
5 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.