Skip to content

Course home

Relational operations in a programming language

Relational operations in a programming language

Easy
1234567891011
Question 11

An automated highway speed monitoring system uses the following algorithm to check if a vehicle is travelling within the permitted range:

1  min_speed ← 30
2  max_speed ← 70
3  measured_speed ← sensor_reading * 3.6
4  IF measured_speed >= min_speed AND measured_speed <= max_speed THEN
5      is_valid ← TRUE
6  ELSE
7      is_valid ← FALSE
8  ENDIF

Select the line number that contains a relational operator.

A

Line 1

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