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.
Line number 1
Line number 2
Line number 3
Line number 4
Practise AQA GCSE Computer Science Relational operations in a programming language with exam-style questions for GCSE Computer Science. 11 questions, matched to the AQA GCSE Computer Science (8525) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.