37Easy
0/1

Select one option which shows the line number where selection is first used in the algorithm shown in Figure 1.

Figure 1

1   limit ← 50
2   count ← 0
3   total ← 0
4   WHILE count < limit
5       value ← USERINPUT
6       IF value > 100 THEN
7           total ← total + (value * 0.9)
8       ELSE
9           total ← total + value
10      ENDIF
11      count ← count + 1
12  ENDWHILE

Line number 4

Line number 5

Line number 6

Line number 8

Programming concepts Questions

Practise AQA GCSE Computer Science Programming concepts with exam-style questions for GCSE Computer Science. 100 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.

PreviousNext

Programming concepts Questions

  1. GCSE
  2. /Computer Science
  3. /Programming concepts