8.1 Programming concepts
223 questions in this subtopic. Open a question to solve it and check the official answer.
Programming concepts · 4 marks · official answer ready
(b) A concept keyboard has a flat surface that is overlaid with images of food items available from the restaurant menu. Staff can click on an image to add the food item to a cust…
Programming concepts · 6 marks · official answer ready
9 A security light is controlled by sensors and a microprocessor. Describe how the sensors and microprocessor interact to switch on the security light when an intruder is detected…
Programming concepts · 6 marks · official answer ready
11 Explain why ethics are important when using computers. .........................................................................................................................…
Programming concepts · 3 marks · official answer ready
(i) For three of the variables that you have used in Task 1, state the name, type and its use. Variable 1 name ....................................................................…
Programming concepts · 3 marks · official answer ready
(d) Explain how you would change your solution for Task 1 to allow the number of charities to be set to two, three or four by the manager. ........................................…
Programming concepts · 0 marks
2 Read this section of program code that inputs positive numbers, discards any negative numbers and then outputs the average. An input of zero ends the process. 1 Total = 0 2 Coun…
Programming concepts · 8 marks · official answer ready
1 (a) All variables, constants and other identifiers should have meaningful names. For four of the variables, constants or arrays that you used in Task 1, state the name, data str…
Programming concepts · 2 marks · official answer ready
(d) Explain how you could extend your solution to deal with the case of ‘NO OVERALL WINNER’. ......................................................................................…
Programming concepts · 0 marks · official answer ready
3 FOR Count = 1 TO 10
Programming concepts · 0 marks
5 IF Num > 10 AND Num < 20 THEN InRange = InRange + 1
Programming concepts · 3 marks · official answer ready
(c) Name another type of printer and describe one way in which it is different from the printers named in part (b). Give an application for this printer. Type of printer .........…
Programming concepts · 1 mark · official answer ready
(ii) Give a reason why the system asks for four characters chosen at random. ......................................................................................................…
Programming concepts · 3 marks
(c) An airport uses the type of barcode shown in part (a) to advertise local places of interest. Describe how a visitor landing at the airport could use these barcodes to help pla…
Programming concepts · 4 marks · official answer ready
(b) This file will be transmitted to Mashuda as an email attachment. Mashuda then stores it on her computer. Explain how checksums can be used to verify that the file has not been…
Programming concepts · 4 marks · official answer ready
11 Describe the use of structure and presentation in a HTML document. .............................................................................................................…
Programming concepts · 3 marks · official answer ready
(i) For each of the variables that you have used to record dimensions of the parcels in Task 1, state the name, type and its use. Variable 1 name .................................…
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 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 ....................................................................…
