Programming
295 questions. Open a question to solve it and check the official answer.
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. ......................................…
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 .............................................................................…
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. ........…
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
Programming concepts · 0 marks
4 INPUT Num
Programming concepts · 0 marks · official answer ready
5 IF Num < Small THEN Num = Small
Programming concepts · 0 marks · official answer ready
6 Counter = Counter + 1
Arrays · 1 mark · official answer ready
(i) Declare the array to store the pupils’ names. .................................................................................................................................…
Arrays · 1 mark · official answer ready
(ii) Declare the array to store the pupils’ weights. ..............................................................................................................................…
Programming concepts · 2 marks · official answer ready
(i) Describe suitable validation rules for Task 1. ................................................................................................................................…
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…
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
Programming concepts · 0 marks
3 WHILE Counter > 30
Programming concepts · 0 marks · official answer ready
5 INPUT Num
Programming concepts · 0 marks
6 IF Num < Large THEN Large = Num
