Computer Science 0478 · 7

Algorithm design and problem-solving

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

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

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

(a) State one other stage in the program development life cycle. ..................................................................................................................…

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

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

(b) Describe the analysis stage of the program development life cycle. ............................................................................................................…

2024 October-November · Paper 22 · Q6

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

6 Outline one type of verification check that could be used when inputting data. ..................................................................................................…

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

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

(a) Complete the trace table for the input data: 5, 6, –1, 20, 9, 4 Value Count Answer OUTPUT [5] 7 , ,

2024 October-November · Paper 22 · Q8

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

8 Different types of test data are used during program development to make sure a program works as intended. A program being developed takes as input whole numbers that are not gr…

2024 October-November · Paper 23 · Q2

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

2 Tick (✓) one box to show a method used to construct a solution to a problem. A abstraction B structure diagram C test data D variable [1]

2024 October-November · Paper 23 · Q5

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

5 One stage of the program development life cycle is the analysis stage. Identify and describe two other stages of the program development life cycle. Stage ......................…

2024 October-November · Paper 23 · Q7

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

7 A programmer is testing a program that requires a positive value between 1 and 100 inclusive to be entered. The range check in the program is to be tested. Identify three differ…

2024 October-November · Paper 23 · Q9

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

9 A flowchart checks that values stored in three variables are identical. If they are different, the highest value is stored in all three variables. START Is A = B AND No STOP B =…

2024 October-November · Paper 23 · Q10

Algorithm design and problem-solving · 0 marks

10 An algorithm has been written in pseudocode to check that a password meets a set of rules. 01 OUTPUT "Please enter password " 02 INPUT Password 03 Accept TRUE 04 IF LENGTH(Pass…

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