Skip to content

Course home

Sign up

Develop code

EasyMediumHard
12345678910111213141516171819
Question 8

A programmer writes a script designed to monitor a network connection, but accidentally creates an infinite loop.

SET status TO "active"
WHILE status == "active"
    OUTPUT "Monitoring network traffic..."
ENDWHILE

State one action the programmer can take to force this program to stop running when it is executing in an Integrated Development Environment (IDE) or console.

[1]
Markscheme

Develop code Questions

  1. GCSE
  2. /Computer Science
  3. /Develop code

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.

Question bank