Computer Science 0478 · 7

Algorithm design and problem-solving

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

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

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

(a) The array List[1:5] used in the flowchart contains this data: List[1] List[2] List[3] List[4] List[5] 15 17 20 5 9 9 , , Complete the trace table using the data given in the a…

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

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

(b) Describe what the algorithm represented by the flowchart is doing. ............................................................................................................…

2024 May-June · Paper 23 · Q1

Algorithm design and problem-solving · 1 mark · official answer ready

1 Tick (3) one box to complete this sentence. This flowchart symbol A represents a subroutine. B represents a decision. C represents an input/output. D represents a terminator. [1]

2024 May-June · Paper 23 · Q4(a)

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

(a) Identify the line numbers of the four errors in the pseudocode and suggest corrections. Error 1 line number ...................................................................…

2024 May-June · Paper 23 · Q5(a)

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

(a) Complete the trace table for the input data: L S T A Limit Count Value OUTPUT [6]

2024 May-June · Paper 23 · Q6(a)

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

(a) Give examples of normal, abnormal and extreme test data that could be used to make sure the program only accepts valid data. Normal test data .................................…

2024 May-June · Paper 23 · Q6(b)

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

(b) Describe what is meant by extreme test data. ..................................................................................................................................…

2024 February-March · Paper 22 · Q1

Algorithm design and problem-solving · 1 mark · official answer ready

1 Tick (✓) one box to show which task is part of the analysis stage of the program life cycle. A coding B decomposition C design D testing [1]

2024 February-March · Paper 22 · Q2(a)

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

2 (a) Four test data types and five descriptions are shown. Draw one line to link each test data type to its most appropriate description. Test data type Description abnormal a va…

2024 February-March · Paper 22 · Q2(b)

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

(b) An algorithm has been written to test if an integer that is input is in the range 5 to 10 inclusive. Identify an example of suitable test data for each test data type. Abnorma…

2024 February-March · Paper 22 · Q3(a)

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

(a) Write an algorithm in pseudocode to input a number, MyNumber, and use a linear search to test if that number is stored in the array. If the number is found in the array, the p…

2024 February-March · Paper 22 · Q3(b)

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

(b) Write an algorithm in pseudocode to sort the array Values[1:50] into ascending order using a bubble sort. .....................................................................…

2024 February-March · Paper 22 · Q5(a)

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

(a) Identify the line numbers of three errors in the pseudocode and suggest corrections. Error 1 line number ......................................................................…

2024 February-March · Paper 22 · Q5(b)(ii)

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

(ii) Describe two other validation checks that should be included in this algorithm. Check 1 ......................................................................................…

2024 February-March · Paper 22 · Q8

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

8 This flowchart represents an algorithm to find the average size of groups of visitors to an attraction. START NumberGroups 0 Total 0 INPUT GroupSize IS Yes GroupSize Average DIV…

2023 October-November · Paper 21 · Q5(a)

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

(a) Describe what is meant by abstraction. ........................................................................................................................................…

2023 October-November · Paper 21 · Q5(b)

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

(b) Identify three of the component parts when a problem has been decomposed at the analysis stage. 1 .............................................................................…

2023 October-November · Paper 21 · Q5(c)

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

(c) Identify and describe one other stage of the program development life cycle. ..................................................................................................…

2023 October-November · Paper 21 · Q6(a)

Algorithm design and problem-solving · 1 mark · official answer ready

(a) State the purpose of this pseudocode algorithm. ...............................................................................................................................…

2023 October-November · Paper 21 · Q8(a)

Algorithm design and problem-solving · 1 mark · official answer ready

(a) State the name of the validation check. .......................................................................................................................................…