Computer Science 0478 · 7

Algorithm design and problem-solving

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

2023 May-June · Paper 21 · Q7(b)

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

7 The flowchart represents an algorithm. START Pointer 1 INPUT Letter IS No Word[Pointer, 1] Pointer Pointer + 1 = Letter ? Yes OUTPUT "Letter ", Letter, " is represented by ", Wo…

2023 May-June · Paper 21 · Q7(c)

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

7 The flowchart represents an algorithm. START Pointer 1 INPUT Letter IS No Word[Pointer, 1] Pointer Pointer + 1 = Letter ? Yes OUTPUT "Letter ", Letter, " is represented by ", Wo…

2023 May-June · Paper 21 · Q13(a)

Algorithm design and problem-solving · 4 marks

(a) Complete the trace table for the algorithm by using the input data: F, Y, D, N Pointer Letter Choice OUTPUT [4] 8

2023 May-June · Paper 21 · Q13(b)

Algorithm design and problem-solving · 1 mark

(b) Identify the type of algorithm used. ..........................................................................................................................................…

2023 May-June · Paper 22 · Q1

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

1 Tick (✓) one box to identify the first stage of the program development life cycle. A Analysis B Coding C Design D Testing [1]

2023 May-June · Paper 22 · Q3

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

3 Identify three different ways that the design of a solution to a problem can be presented. 1 ....................................................................................…

2023 May-June · Paper 22 · Q4(b)(i)

Algorithm design and problem-solving · 1 mark

(i) State why this check needs to be included. ....................................................................................................................................…

2023 May-June · Paper 22 · Q7(b)

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

(b) Identify the three errors in the pseudocode and suggest a correction for each error. Error 1 ..................................................................................…

2023 May-June · Paper 22 · Q7(c)

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

(c) The algorithm does not check that each input is a single digit. Identify the place in the algorithm where this check should occur. Write pseudocode for this check. Your pseudo…

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

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

(a) The array X[1:5] used in the flowchart contains this data: X[1] X[2] X[3] X[4] X[5] 10 1 5 7 11 Complete the trace table by using the data given in the array. F C X[1] X[2] X[…

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

2023 May-June · Paper 23 · Q4(b)

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

(b) Give two types of verification check and state how each one can be used. Verification check 1 .................................................................................…

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

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

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

2023 May-June · Paper 23 · Q7(a)

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

(a) Complete the trace table for the input data: Total Value Five1 Five2 Ten1 Ten2 OUTPUT [6]

2023 February-March · Paper 22 · Q3

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

3 Describe the purpose of test data. Include an example of a type of test data in your answer. Description ........................................................................…

2023 February-March · Paper 22 · Q5

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

5 A food ordering system is an example of a computer system that is made up of sub-systems. The food ordering system: • allows the user to enter the details of the food they want …

2023 February-March · Paper 22 · Q6(a)

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

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

2023 February-March · Paper 22 · Q6(b)

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

(b) Write pseudocode to check for an efficiency of 92% or over for this appliance and to output “A-rated” if the efficiency is 92% or over. .......................................…

2023 February-March · Paper 22 · Q8(a)

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

(a) Complete the trace table using this data: NumberSales Total SaleValue Average OUTPUT [4] 9

2023 February-March · Paper 22 · Q8(b)

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

(b) Identify the error in the algorithm and describe how to correct it. Error .....................................................................................................…