Algorithm design and problem-solving
178 questions. Open a question to solve it and check the official answer.
Algorithm design and problem-solving · 1 mark · official answer ready
7 The flowchart represents an algorithm. START Pointer 1 INPUT Letter IS No Word[Pointer, 1] Pointer Pointer + 1 = Letter ? Yes OUTPUT "Letter ", Letter, " is represented by ", Wo…
Algorithm design and problem-solving · 2 marks · official answer ready
7 The flowchart represents an algorithm. START Pointer 1 INPUT Letter IS No Word[Pointer, 1] Pointer Pointer + 1 = Letter ? Yes OUTPUT "Letter ", Letter, " is represented by ", Wo…
Algorithm design and problem-solving · 4 marks
(a) Complete the trace table for the algorithm by using the input data: F, Y, D, N Pointer Letter Choice OUTPUT [4] 8
Algorithm design and problem-solving · 1 mark
(b) Identify the type of algorithm used. ..........................................................................................................................................…
Algorithm design and problem-solving · 1 mark · official answer ready
1 Tick (✓) one box to identify the first stage of the program development life cycle. A Analysis B Coding C Design D Testing [1]
Algorithm design and problem-solving · 3 marks · official answer ready
3 Identify three different ways that the design of a solution to a problem can be presented. 1 ....................................................................................…
Algorithm design and problem-solving · 1 mark
(i) State why this check needs to be included. ....................................................................................................................................…
Algorithm design and problem-solving · 8 marks · official answer ready
(b) Identify the three errors in the pseudocode and suggest a correction for each error. Error 1 ..................................................................................…
Algorithm design and problem-solving · 9 marks · official answer ready
(c) The algorithm does not check that each input is a single digit. Identify the place in the algorithm where this check should occur. Write pseudocode for this check. Your pseudo…
Algorithm design and problem-solving · 35 marks · official answer ready
(a) The array X[1:5] used in the flowchart contains this data: X[1] X[2] X[3] X[4] X[5] 10 1 5 7 11 Complete the trace table by using the data given in the array. F C X[1] X[2] X[…
Algorithm design and problem-solving · 2 marks · official answer ready
(b) Describe what the algorithm represented by the flowchart is doing. ............................................................................................................…
Algorithm design and problem-solving · 4 marks · official answer ready
(b) Give two types of verification check and state how each one can be used. Verification check 1 .................................................................................…
Algorithm design and problem-solving · 4 marks · official answer ready
(a) Identify the four errors in the pseudocode and suggest corrections. Error 1 ...................................................................................................…
Algorithm design and problem-solving · 6 marks · official answer ready
(a) Complete the trace table for the input data: Total Value Five1 Five2 Ten1 Ten2 OUTPUT [6]
Algorithm design and problem-solving · 3 marks · official answer ready
3 Describe the purpose of test data. Include an example of a type of test data in your answer. Description ........................................................................…
Algorithm design and problem-solving · 4 marks · official answer ready
5 A food ordering system is an example of a computer system that is made up of sub-systems. The food ordering system: • allows the user to enter the details of the food they want …
Algorithm design and problem-solving · 3 marks · official answer ready
(a) Identify the three errors in the pseudocode and suggest corrections. Error 1 ..................................................................................................…
Algorithm design and problem-solving · 2 marks · official answer ready
(b) Write pseudocode to check for an efficiency of 92% or over for this appliance and to output “A-rated” if the efficiency is 92% or over. .......................................…
Algorithm design and problem-solving · 4 marks · official answer ready
(a) Complete the trace table using this data: NumberSales Total SaleValue Average OUTPUT [4] 9
Algorithm design and problem-solving · 3 marks · official answer ready
(b) Identify the error in the algorithm and describe how to correct it. Error .....................................................................................................…
