1Easy
0/1

Identify the line number where selection is first used in the algorithm shown in Figure 1.

Figure 1

1      age ← USERINPUT
2      price ← 0
3      IF age < 12 THEN
4          price ← 5
5      ELSE IF age >= 65 THEN
6          price ← 7
7      ELSE
8          price ← 10
9      ENDIF
10     WHILE price > 0
11         IF age < 5 THEN
12             DISCOUNT('FREE')
13         ENDIF
14         price ← price - 5
15     ENDWHILE

Line number 1

Line number 3

Line number 10

Line number 11

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.

Next

Programming concepts Questions

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