Computer Science 2210 · 7

Algorithm design and problem-solving

175 questions. Open a question to solve it and check the official answer.

2016 May-June · Paper 22 · Q8

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 .................................................................…

2016 May-June · Paper 22 · Q8(c)

Algorithm design and problem-solving · 19 marks

(c) State the data type you would choose for each of the following fields. Number of Seats ........................................................................................…

2015 October-November · Paper 12 · Q3

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…

2015 October-November · Paper 23 · Q1(b)

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…

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

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 …

2015 October-November · Paper 23 · Q9(b)

Algorithm design and problem-solving · 21 marks

(b) State the purpose of the pseudocode in part (a). ..............................................................................................................................…

2015 May-June · Paper 21 · Q1(b)

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…

2015 May-June · Paper 21 · Q1(c)

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 ................…

2015 May-June · Paper 21 · Q8

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 ..............................................…

2015 May-June · Paper 21 · Q8(c)

Algorithm design and problem-solving · 21 marks

(c) State the data type you would choose for each of the following fields. Garage .................................................................................................…

2015 May-June · Paper 22 · Q1(b)

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…

2015 May-June · Paper 22 · Q1(c)(ii)

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 ................................................…

2015 May-June · Paper 22 · Q9(a)

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…

2015 May-June · Paper 22 · Q9(b)

Algorithm design and problem-solving · 5 marks

(b) State the purpose of the flowchart in part (a). ...............................................................................................................................…

2015 May-June · Paper 22 · Q9(c)

Algorithm design and problem-solving · 22 marks

(c) Identify a problem with this flowchart and explain how to correct it. Problem .................................................................................................…