An algorithm for analyzing atmospheric pressure deviations is shown below:
1 pressure ← READ_PRESSURE()
2 threshold ← 1013.25
3 IF pressure != threshold THEN
4 delta ← pressure - threshold
5 ELSE
6 delta ← 0.0
7 ENDIF
Which line number contains a relational operator?
Line 1
Line 3
Line 4
Line 6
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.