Skip to content

Course home

Relational operations in a programming language

Relational operations in a programming language

Easy
1234567891011
Question 4

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.

A

Line 2

B

Line 3

C

Line 4

D

Line 5

Markscheme

Relational operations in a programming language Questions

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

11 exam-style questions on AQA GCSE Computer Science Relational operations in a programming language. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank