Programming
295 questions. Open a question to solve it and check the official answer.
Programming concepts · 2 marks · official answer ready
(ii) State two constants that you could have used for Task 1. Give the value that would be assigned to each one. Constant 1 name ..................................................…
Programming · 4 marks · official answer ready
(d) Explain how your program calculates the price for a consignment (part of Task 3). You may include programming statements as part of your explanation. .........................…
Programming concepts · 0 marks · official answer ready
2 Read this section of program code that inputs 10 positive numbers and then outputs the smallest number input. 1 Small = 1000 2 Counter = 0
Programming concepts · 0 marks
5 IF Num < Small THEN Small = Num
Programming concepts · 3 marks · official answer ready
(i) For three of the variables that you have used in Task 2, state the name, type and its use. Variable 1 name ....................................................................…
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 ................................................…
Programming · 5 marks · official answer ready
(d) Explain how your program calculates the price for an order (Task 3). You may include programming statements as part of your explanation. ......................................…
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
Programming concepts · 0 marks
4 Has the re-order flag already been added to the product record?
Programming concepts · 0 marks
7 Output an error message
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? …
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. ..................................…
Programming concepts · 9 marks
(iii) Name another file compression format. ...................................................................................................................................... …
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 ..................................…
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 ........................…
Programming · 6 marks · official answer ready
(i) Explain how you completed Task 3. You should assume that Task 2 has been completed. You can include pseudocode or programming statements as part of your explanation. .........…
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
Programming concepts · 0 marks
3 FOR Counter = 1 TO 50
Programming concepts · 0 marks · official answer ready
5 IF Num < 0 THEN Total = Total + Num
Programming concepts · 0 marks · official answer ready
6 IF Num > 0 THEN Counter = Counter + 1
