Skip to content

Course home

Relational operations in a programming language

Relational operations in a programming language

Easy
1234567891011
Question 2

Where is a relational operator first used in the algorithm in Figure 1?

Figure 1

1      count ← 0
2      target ← USERINPUT
3      row ← target * 2
4      IF row > 10 AND count == 0 THEN
5          OUTPUT "High"
6      ELSEIF row < 5 OR target < 0 THEN
7          OUTPUT "Low"
8      ELSE
9          OUTPUT "Medium"
10     ENDIF
A

Line 2

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