Skip to content

Course home

Relational operations in a programming language

Relational operations in a programming language

Easy
1234567891011
Question 10

Select one option that shows the line number that contains a relational operator in the algorithm in Figure 1.

Figure 1

1  temp ← USERINPUT
2  limit ← 38.5
3  IF temp > limit THEN
4      OUTPUT "Fever detected"
5  ELSE
6      OUTPUT "Normal range"
7  ENDIF
A

Line number 1

B

Line number 2

C

Line number 3

D

Line number 4

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