Computer Science 0478 · 7

Algorithm design and problem-solving

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

2025 February-March · Paper 22 · Q4(a)

Algorithm design and problem-solving · 1 mark

4 (a) A presence check is a type of validation check. State the purpose of a presence check. ......................................................................................…

2025 February-March · Paper 22 · Q4(b)(i)

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

(i) Identify the validation check used to test whether the value input meets this requirement. ....................................................................................…

2025 February-March · Paper 22 · Q5

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

5 A program is written to only accept data that contains more than 9 characters. The program needs to be tested. The table, when completed, shows appropriate test data that matche…

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

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

(a) Identify the line numbers of five errors in the pseudocode and suggest a correction for each error. Error 1 line number .......................................................…

2025 February-March · Paper 22 · Q7(a)

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

(a) Complete the trace table for the input data: Y, 7, S, 9, Y, 5, M, 12, Y, 25, D, 5, N, 10, A, 6 Answer Value1 Operator Value2 OUTPUT [5]

2025 February-March · Paper 22 · Q7(c)(ii)

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

(ii) Identify one more error related to inputs when the algorithm is run. .........................................................................................................…

2024 October-November · Paper 12 · Q5(a)

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

(a) Explain how the barcode scanning system operates to check for errors. .........................................................................................................…

2024 October-November · Paper 21 · Q1

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

1 Tick (✓) one box to show which check is used for verification when data is input. A length check B range check C type check D visual check [1]

2024 October-November · Paper 21 · Q2

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

2 Tick (✓) one box to identify which option is used to show the inputs and output of a Boolean expression. A flowchart B trace table C truth table D variable [1]

2024 October-November · Paper 21 · Q4

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

4 Identify three stages of the program development life cycle from the following list of words. analysis decomposition design input pseudocode testing variable 1 .................…

2024 October-November · Paper 21 · Q5

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

5 Describe three methods that are used to design and construct a solution to a problem. Method 1 ..................................................................................…

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

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

(a) Complete the given pseudocode algorithm. [3]

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

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

(a) Complete the flowchart for the program. START STOP [6] 7 , ,

2024 October-November · Paper 21 · Q9

Algorithm design and problem-solving · 0 marks

9 An algorithm has been written in pseudocode to check if a temperature is in a given range. The temperature values used in the algorithm are correct. 01 REPEAT 02 OUTPUT "Please …

2024 October-November · Paper 21 · Q19(c)

Algorithm design and problem-solving · 7 marks

(c) Complete the trace table for the corrected algorithm using this data: Temperature OUTPUT [2] 10 , , 10 A shop that sells cheese has set up a new database table called CheeseSt…

2024 October-November · Paper 22 · Q1

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

1 Tick (✓) one box to complete this sentence. A solution to a problem may be represented using pseudocode, flowcharts or A procedures. B processes. C structure diagrams. D sub-sys…

2024 October-November · Paper 22 · Q3(a)

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

(a) Draw one line to link each flowchart symbol to its correct purpose. Not all purposes will be used. Flowchart symbol Purpose subroutine process flow decision terminator [4] 3 ,…

2024 October-November · Paper 22 · Q3(b)

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

(b) An algorithm needs to total 50 numbers between 1 and 100 inclusive. Draw a flowchart that: • uses a count-controlled loop from 1 to 50 • uses an appropriate prompt to ask for …

2024 October-November · Paper 22 · Q4(a)

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

(a) Identify the line numbers of five errors in the pseudocode and suggest a correction for each error. Error 1 line number .......................................................…

2024 October-November · Paper 22 · Q4(b)

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

(b) A bubble sort algorithm can be written to include features that make it more efficient. Explain why the corrected bubble sort algorithm is efficient. .........................…