Computer Science 2210 · 8

8.1 Programming concepts

223 questions in this subtopic. Open a question to solve it and check the official answer.

Reset
2016 May-June · Paper 22 · Q1(a)(ii)

Programming concepts · 3 marks · official answer ready

(ii) State three constants that you could have used for Task 1. Give the value that would be assigned to each one. Constant 1 name ................................................…

2016 May-June · Paper 22 · Q2

Programming concepts · 0 marks · official answer ready

2 Read this section of program code that inputs 10 positive numbers and then outputs the total. 1 Total = 0 2 Counter = 0

2015 October-November · Paper 12 · Q4

Programming concepts · 0 marks

4 Has the re-order flag already been added to the product record?

2015 October-November · Paper 12 · Q7

Programming concepts · 0 marks

7 Output an error message

2015 October-November · Paper 12 · Q8(b)

Programming concepts · 6 marks

8 Automatically send out order for new product 5 START Barcode on product END is scanned No Yes Barcode is looked up in stock database No Yes Yes Any more No barcodes No to scan? …

2015 October-November · Paper 13 · Q9(a)

Programming concepts · 10 marks · official answer ready

(a) Describe how the sensors and microprocessor are used to monitor the temperature and CO levels and warn the driver if either is out of range. ..................................…

2015 October-November · Paper 13 · Q9(c)(iii)

Programming concepts · 9 marks

(iii) Name another file compression format. ...................................................................................................................................... …

2015 October-November · Paper 23 · Q1(a)(i)

Programming concepts · 4 marks · official answer ready

(i) When you performed the tasks, you used variables. Write suitable declarations for two of these. State what you used each one for. Variable 1 ..................................…

2015 October-November · Paper 23 · Q1(a)(ii)

Programming concepts · 4 marks · official answer ready

(ii) When you performed the tasks, you may have used constants. Write suitable declarations for two of these. State what you used each one for. Constant 1 ........................…

2015 October-November · Paper 23 · Q2

Programming concepts · 0 marks · official answer ready

2 Read this section of program code that should input 50 numbers and then output the average of the positive numbers only. 1 Total = 0 2 PosCount = 0

2015 October-November · Paper 23 · Q3

Programming concepts · 0 marks

3 FOR Counter = 1 TO 50

2015 October-November · Paper 23 · Q5

Programming concepts · 0 marks · official answer ready

5 IF Num < 0 THEN Total = Total + Num

2015 October-November · Paper 23 · Q6

Programming concepts · 0 marks · official answer ready

6 IF Num > 0 THEN Counter = Counter + 1

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 · 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(c)(i)

Programming concepts · 2 marks · official answer ready

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

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