In an automated agricultural irrigation system, a moisture sensor registers a value mmm. A microcontroller executes the following relational comparison to decide if watering is required:
m<threshold m < \text{threshold} m<thresholdState the two possible outcomes when this relational test is evaluated by the microcontroller.
15 exam-style questions on Edexcel GCSE Computer Science Operators, covering Using arithmetic operators, Using relational operators, and Using logical operators. Each one has a worked solution and a mark scheme showing where the marks go.