Computer Science 2210 · 8

Programming

295 questions. Open a question to solve it and check the official answer.

2015 May-June · Paper 21 · Q1(a)(ii)

Arrays · 1 mark · official answer ready

(ii) It has been decided to record the temperatures for one week rather than one month. Write the new array declarations that you would use. ......................................…

2015 May-June · Paper 21 · Q1(a)(iii)

Programming concepts · 4 marks · official answer ready

(iii) Declare two other variables that you have used and state what you used each one for. Variable 1 .............................................................................…

2015 May-June · Paper 21 · Q1(d)

Programming · 6 marks · official answer ready

(d) Explain how you select the day with the highest midday temperature (part of Task 3). You may include pseudocode or programming statements as part of your explanation. ........…

2015 May-June · Paper 21 · Q2

Programming concepts · 0 marks

2 Read this section of program code that should input 10 positive numbers and then output the smallest number input. 1 Small = 0 2 Counter = 0

2015 May-June · Paper 21 · Q4

Programming concepts · 0 marks

4 INPUT Num

2015 May-June · Paper 21 · Q5

Programming concepts · 0 marks · official answer ready

5 IF Num < Small THEN Num = Small

2015 May-June · Paper 21 · Q6

Programming concepts · 0 marks · official answer ready

6 Counter = Counter + 1

2015 May-June · Paper 22 · Q1(a)(i)

Arrays · 1 mark · official answer ready

(i) Declare the array to store the pupils’ names. .................................................................................................................................…

2015 May-June · Paper 22 · Q1(a)(ii)

Arrays · 1 mark · official answer ready

(ii) Declare the array to store the pupils’ weights. ..............................................................................................................................…

2015 May-June · Paper 22 · Q1(c)(i)

Programming concepts · 2 marks · official answer ready

(i) Describe suitable validation rules for Task 1. ................................................................................................................................…

2015 May-June · Paper 22 · Q1(d)

Programming · 6 marks · official answer ready

(d) Explain how you select the pupils with a fall in weight of more than 2.5 kilograms (part of Task 3). You may include pseudocode or programming statements as part of your expla…

2015 May-June · Paper 22 · Q2

Programming concepts · 0 marks

2 Read this section of program code that should input 30 positive numbers and then output the largest number input. 1 Large = 9999 2 Counter = 0

2015 May-June · Paper 22 · Q3

Programming concepts · 0 marks

3 WHILE Counter > 30

2015 May-June · Paper 22 · Q5

Programming concepts · 0 marks · official answer ready

5 INPUT Num

2015 May-June · Paper 22 · Q6

Programming concepts · 0 marks

6 IF Num < Large THEN Large = Num