Computer Science 0478 · 7

Algorithm design and problem-solving

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

2025 October-November · Paper 13 · Q4(a)

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

(a) Identify two security solutions that can be provided to help prevent hackers being successful. Explain how each solution helps prevent hackers being successful. Solution 1 ...…

2025 October-November · Paper 21 · Q2

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

2 Identify three different types of test data that can be used to test a program. 1 ...............................................................................................…

2025 October-November · Paper 21 · Q4(b)

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

(b) The final cost of the order after the discount may have more than 2 decimal places. Write a pseudocode statement to set the final cost of the order to 2 decimal places. You do…

2025 October-November · Paper 21 · Q5

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

5 A hotel booking system is an example of a computer system that is made up of sub-systems. The booking system: • allows the user to select the room type and the number of nights …

2025 October-November · Paper 21 · Q6(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 a correction for each error. Error 1 line number ......................................... Correctio…

2025 October-November · Paper 21 · Q7(a)

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

(a) Complete the tables, using the flowchart, for the given data: Input data: 20 Count Number Value Output Input data: 110 Count Number Value Output [4] * 0000800000010 * DFD 10 ,…

2025 October-November · Paper 22 · Q2(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 ...................................... Correction .....…

2025 October-November · Paper 22 · Q3

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

3 A program is written that will only accept values between –99.99 and +99.99, inclusive. The program is to be tested. The table, when completed, shows appropriate test data that …

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

Algorithm design and problem-solving · 1 mark

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

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

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

(a) The first data row of the trace table shows the values currently stored in CodeStore[] Complete the trace table for the algorithm, using the input data: 7686, Face, Speed, 432…

2025 October-November · Paper 23 · Q5(a)

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

(a) Complete the trace table for the algorithm using the following numbers: Count Number Lowest Highest [4]

2025 October-November · Paper 23 · Q6(a)

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

(a) The algorithm uses the one-dimensional (1D) array ClassList that contains the following data: ClassList 1 2 3 4 5 Henil Sven Ella Asia Ridwan Complete the table by writing the…

2025 October-November · Paper 23 · Q6(b)

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

(b) Identify the standard method of solution used by the flowchart. ...............................................................................................................…

2025 October-November · Paper 23 · Q6(c)

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

(c) Write the algorithm in pseudocode. ............................................................................................................................................…

2025 October-November · Paper 23 · Q7(a)

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

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

2025 October-November · Paper 23 · Q7(b)

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

(b) Identify one programming technique used in the algorithm. .....................................................................................................................…

2025 October-November · Paper 23 · Q7(c)(i)

Algorithm design and problem-solving · 1 mark

(i) The algorithm can accept a number between 1 and 255 inclusive as input. Two validation checks that could be applied to DenaryNumber are a presence check and a type check. Iden…

2025 October-November · Paper 23 · Q7(c)(ii)

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

(ii) Write the pseudocode to implement the validation check you identified in (c)(i). You do not need to rewrite the whole algorithm. .............................................…

2025 May-June · Paper 21 · Q1

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

1 Tick (ü) one box to identify the type of test to only check for the largest or smallest acceptable value. A normal test data B abnormal test data C extreme test data D boundary …

2025 May-June · Paper 21 · Q2(b)

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

(b) Identify and describe one verification check that could be applied when a new password is input into a system. Verification check .............................................…