Algorithm design and problem-solving
175 questions. Open a question to solve it and check the official answer.
Algorithm design and problem-solving · 17 marks · official answer ready
8 UNTIL Counter = 10 This code works, but it is inefficient. (i) Suggest three improvements that could be made. 1 .................................................................…
Algorithm design and problem-solving · 19 marks
(c) State the data type you would choose for each of the following fields. Number of Seats ........................................................................................…
Algorithm design and problem-solving · 0 marks · official answer ready
3 The flowchart on the opposite page shows what happens when the barcode on a product is scanned at the checkout in a supermarket. The barcodes are used in an automatic stock cont…
Algorithm design and problem-solving · 5 marks · official answer ready
(b) Write an algorithm to complete Task 2, using either pseudocode, programming statements or a flowchart. You should assume that the temperatures taken over the five hours are al…
Algorithm design and problem-solving · 8 marks
3 (a) This pseudocode inputs an integer. The predefined function DIV gives the value of the division, e.g. Y 10 DIV 3 gives the value Y = 3. The predefined function MOD gives the …
Algorithm design and problem-solving · 21 marks
(b) State the purpose of the pseudocode in part (a). ..............................................................................................................................…
Algorithm design and problem-solving · 5 marks · official answer ready
(b) Write an algorithm to complete Task 2, using either pseudocode, programming statements or a flowchart. Use temperatures for one week only. You should assume that Task 1 has al…
Algorithm design and problem-solving · 2 marks · official answer ready
(c) Give a set of midday temperature data, for a week, that could be used to check your validation rules for Task 1. Explain why you chose this data set. Data set ................…
Algorithm design and problem-solving · 18 marks
8 UNTIL Counter < 10 There are four errors in this code. Locate these errors and suggest a corrected piece of code for each error. 1 ..............................................…
Algorithm design and problem-solving · 21 marks
(c) State the data type you would choose for each of the following fields. Garage .................................................................................................…
Algorithm design and problem-solving · 5 marks · official answer ready
(b) Write an algorithm to complete Task 2, using either pseudocode, programming statements or a flowchart. Use weights for the whole school. You should assume that Task 1 has alre…
Algorithm design and problem-solving · 4 marks · official answer ready
(ii) Give two pupil weights that you could use to check the validation used in Task 1. Explain why you chose each weight. Weight 1 ................................................…
Algorithm design and problem-solving · 8 marks
3 (a) The flowchart below inputs six single digit numbers. The predefined function MOD gives the value of the remainder, for example, Y ← 10 MOD 3 gives the value Y = 1 START INPU…
Algorithm design and problem-solving · 5 marks
(b) State the purpose of the flowchart in part (a). ...............................................................................................................................…
Algorithm design and problem-solving · 22 marks
(c) Identify a problem with this flowchart and explain how to correct it. Problem .................................................................................................…
