Computer Science 2210 · 7

Algorithm design and problem-solving

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

Reset
2017 October-November · Paper 22 · Q1(b)

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

(b) Give two different validation checks you could have used for data entry in Task 1. For each check explain why it could be used and provide a set of data for testing. Validatio…

2017 October-November · Paper 22 · Q1(c)

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

(c) Write an algorithm to complete Task 3, using either pseudocode, programming statements or a flowchart. You may assume Task 2 has been completed. ..............................…

2017 October-November · Paper 22 · Q2

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

2 Write an algorithm using either pseudocode or a flowchart, to: • input a positive integer • use this value to set up how many other numbers are to be input • input these numbers…

2017 October-November · Paper 22 · Q5(a)

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

5 (a) This flowchart checks a batch of 10 rice sacks for weight. Sacks should weigh 50 kilograms each. Sacks weighing over 50.5 kilograms or less than 49.5 kilograms are rejected.…

2017 October-November · Paper 22 · Q5(b)

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

(b) The size of the batch has increased to 50 sacks. It has been decided to only reject sacks that are underweight. State the changes that need to be made to the flowchart. ......…

2017 October-November · Paper 23 · 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. ........................................................................…

2017 October-November · Paper 23 · Q11(a)

Algorithm design and problem-solving · 6 marks

3 (a) Explain the difference between a validation check and a verification check. .................................................................................................…

2017 October-November · Paper 23 · Q11(c)

Algorithm design and problem-solving · 46 marks

(c) Explain what is meant by the term library routine. ............................................................................................................................…

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

2017 May-June · Paper 21 · Q1(c)(i)

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

(i) Name and describe one suitable validation check you used for Task 1, and one suitable validation check for Task 2. Each check MUST be different. Task 1 Name ..................…

2017 May-June · Paper 21 · Q1(c)(ii)

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

(ii) For each validation check in part (c)(i), give an example of suitable test data and explain why you chose the test data. Test data for (c)(i) Task 1 .........................…

2017 May-June · Paper 21 · Q11(c)

Algorithm design and problem-solving · 27 marks

(c) Write an algorithm, using pseudocode, to input a number between 0 and 100 inclusive. The algorithm should prompt for the input and output an error message if the number is out…

2017 May-June · Paper 22 · Q1(c)

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

(c) Write an algorithm to complete Task 2, using either pseudocode, programming statements or a flowchart. You can assume that Task 1 has been completed. You do not need to produc…

2017 May-June · Paper 22 · Q2(a)

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

2 (a) Write an algorithm to input three different numbers, and then output the largest number. Use either pseudocode or a flowchart. ..............................................…

2017 May-June · Paper 22 · Q2(b)

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

(b) Give two sets of test data to use with your algorithm in part (a) and explain why you chose each set. Test data set 1 .........................................................…

2017 May-June · Paper 22 · Q3

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

3 This flowchart inputs the weight of items in kilograms to be loaded on a trailer. Any item over 25 kilograms is rejected. The trailer can take up to 100 kilograms. START TotalWe…

2017 May-June · Paper 22 · Q4(a)

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

(a) Find the error in the pseudocode and suggest a correction. Error ..............................................................................................................…