Computer Science 2210 · 7

Algorithm design and problem-solving

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

2025 May-June · Paper 22 · Q4(a)

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

4 (a) State one reason for using a verification check when inputting data. ........................................................................................................…

2025 May-June · Paper 22 · Q4(b)

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

(b) Write the pseudocode for an algorithm to perform a double entry verification check, using the following criteria: • Input 10 numbers and store them in the array Numbers[] • In…

2025 May-June · Paper 22 · Q5(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 May-June · Paper 22 · Q6(a)

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

(a) Complete the trace table for the algorithm, using the input data: 2, RACECAR, TREAT Number Index Word Continue V1 V2 L1 L2 OUTPUT [6]

2025 May-June · Paper 22 · Q7(a)

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

(a) Complete the flowchart. START Count 0 Total 0 No Yes No Yes STOP [6] 9

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

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

(b) Explain how you would alter the flowchart in 7(a) so that it will individually store each accepted value as it is entered and then output all the numbers, one after the other,…

2024 May-June · Paper 12 · Q6

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

6 The table contains statements about error detection methods. Complete the table by giving the correct error detection method for each statement. error detection method statement…

2024 May-June · Paper 21 · Q1

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

1 Tick (ü) one box to complete this sentence. A validation check to make sure that an email address contains an ‘@’ sign is a A range check. B visual check. C presence check. D fo…

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

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

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

2024 May-June · Paper 21 · Q4(b)

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

(b) Write the pseudocode statement that would output the average calculated in line 13 of the algorithm rounded to one decimal place. .............................................…

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

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

(a) Complete the trace table for the input data: Numbers Limit Count [1] [2] [3] [4] [5] [6] [7] Flag Swap Result OUTPUT [7] 8

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

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

(b) Outline the processes involved in the algorithm shown in the flowchart on page 6. .............................................................................................…

2024 May-June · Paper 22 · Q1

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

1 Tick (✓) one box to identify a method used to design and construct a solution to a computing problem. A analysis B coding C flowchart D testing [1]

2024 May-June · Paper 22 · Q3

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

3 Identify three different tasks in the analysis stage of the program development life cycle. 1 ...................................................................................…

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

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

(a) Identify three validation checks and state how each check would make sure the product code met one of these rules. Check 1 ....................................................…

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

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

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

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 array…

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

2023 October-November · Paper 22 · Q1

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

1 Tick (✓) one box to complete the sentence. Verification is used to make sure that a value entered A has not changed during input. B is an integer. C is correct. D is not a strin…

2023 October-November · Paper 22 · Q2(a)

Algorithm design and problem-solving · 1 mark

(a) State the type of validation check used. ......................................................................................................................................…