4Easy
0/1

An industrial telemetry system monitors a temperature sensor and applies a calibration adjustment using the algorithm below:

1  sensor_val ← READ_SENSOR()
2  drift_factor ← -0.05
3  adjusted_val ← sensor_val * (1.0 + drift_factor)
4  IF adjusted_val != 25.0 THEN
5      alert ← TRUE
6  ENDIF

Select the option that shows the line number containing a relational operator.

Line 2

Line 3

Line 4

Line 5

Relational operations in a programming language Questions

Practise AQA GCSE Computer Science Relational operations in a programming language with exam-style questions for GCSE Computer Science. 11 questions, matched to the AQA GCSE Computer Science (8525) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.

PreviousNext

Relational operations in a programming language Questions

  1. GCSE
  2. /Computer Science
  3. /Relational operations in a programming language