Computer Science 2210 · 7

Algorithm design and problem-solving

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

Reset
2016 October-November · 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. You can assume that Task 1 has been completed. .........................…

2016 October-November · Paper 22 · Q11

Algorithm design and problem-solving · 18 marks

11 Print Average There are four errors in this code. Locate these errors and suggest a correction to remove each error. Error 1 ...................................................…

2016 October-November · Paper 22 · Q11(b)

Algorithm design and problem-solving · 21 marks

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

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

Algorithm design and problem-solving · 4 marks · official answer ready

(b) Write an algorithm to complete Task 2, using either pseudocode, programming statements or a flowchart. You can assume that Task 1 has been completed and that there are three c…

2016 October-November · Paper 23 · Q10

Algorithm design and problem-solving · 18 marks · official answer ready

10 …………………………………………………………………….. …………………………………………………………………….. 20 …………………………………………………………………….. …………………………………………………………………….. [4] 8 3 The flowchart below inputs the price of an item u…

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

Algorithm design and problem-solving · 5 marks · official answer ready

(b) Write an algorithm to complete Task 1, using either pseudocode, programming statements or a flowchart. ........................................................................…

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

Algorithm design and problem-solving · 6 marks · official answer ready

(c) Give three different data sets that could be used to check your validation rules for Task 1. Explain why you chose each data set. Data set 1 ..................................…

2016 May-June · Paper 21 · Q8

Algorithm design and problem-solving · 21 marks · official answer ready

8 PRINT Small (i) Identify three changes you would need to make to find the largest number input instead of the smallest number. 1 ................................................…

2016 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. You can assume that the weight and contents have already been checked an…

2016 May-June · Paper 22 · Q1(c)(i)

Algorithm design and problem-solving · 2 marks · official answer ready

(i) Give two different data values that could be used to check your validation rules for sand in Task 1. Explain why you chose each value. Sand data value 1 ......................…

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

Algorithm design and problem-solving · 2 marks · official answer ready

(ii) Give two different data values that could be used to check your validation rules for cement in Task 1. Explain why you chose each value. Cement data value 1 .................…

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