Skip to content

Course home

Relational operations in a programming language

Relational operations in a programming language

Easy
1234567891011
Question 5

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?

A

Line 1

B

Line 3

C

Line 4

D

Line 6

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