Skip to content

Course home

Relational operations in a programming language

Relational operations in a programming language

Easy
1234567891011
Question 8

An algorithm for a temperature warning system is shown below:

1  sensor_reading ← USERINPUT
2  adjusted_reading ← (sensor_reading * 1.8) + 32
3  alert_active ← false
4  IF adjusted_reading >= 100.0 THEN
5      alert_active ← true
6  ENDIF

Which line number contains a relational operator?

A

Line 222

B

Line 333

C

Line 444

D

Line 555

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