Skip to content

Course home

Relational operations in a programming language

Relational operations in a programming language

Easy
1234567891011
Question 9

An algorithm is shown in Figure 1.

Figure 1

1  score ← USERINPUT
2  bonus ← 10
3  IF score > 100 THEN
4      totalScore ← score + bonus
5  ELSE
6      totalScore ← score
7  ENDIF

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

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