Computer Science 2210 · 7

Algorithm design and problem-solving

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

2025 May-June · 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 ............................ Correction ...........…

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

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

(b) Identify one method to make the algorithm maintainable. Give an example. ......................................................................................................…

2025 May-June · Paper 21 · Q10(a)

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

(a) Complete the trace table for the algorithm, using the input data: 21, 46, 63, 91, 12 Score Grade OUTPUT [3]

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

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

(b) Explain how the flowchart can be changed to produce the correct output. .......................................................................................................…

2025 May-June · Paper 22 · Q3

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

3 A range check is used to validate that the input temperature is an integer between –100 and 0, inclusive. Suggest suitable normal, abnormal, extreme and boundary test data to te…