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
4 (a) A presence check is a type of validation check. State the purpose of a presence check. ......................................................................................…
Algorithm design and problem-solving · 1 mark · official answer ready
(i) Identify the validation check used to test whether the value input meets this requirement. ....................................................................................…
Algorithm design and problem-solving · 6 marks · official answer ready
5 A program is written to only accept data that contains more than 9 characters. The program needs to be tested. The table, when completed, shows appropriate test data that matche…
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 .......................................................…
Algorithm design and problem-solving · 5 marks · official answer ready
(a) Complete the trace table for the input data: Y, 7, S, 9, Y, 5, M, 12, Y, 25, D, 5, N, 10, A, 6 Answer Value1 Operator Value2 OUTPUT [5]
Algorithm design and problem-solving · 1 mark · official answer ready
(ii) Identify one more error related to inputs when the algorithm is run. .........................................................................................................…
Algorithm design and problem-solving · 4 marks · official answer ready
(a) Explain how the barcode scanning system operates to check for errors. .........................................................................................................…
Algorithm design and problem-solving · 1 mark · official answer ready
1 Tick (✓) one box to show which check is used for verification when data is input. A length check B range check C type check D visual check [1]
Algorithm design and problem-solving · 1 mark · official answer ready
2 Tick (✓) one box to identify which option is used to show the inputs and output of a Boolean expression. A flowchart B trace table C truth table D variable [1]
Algorithm design and problem-solving · 3 marks · official answer ready
4 Identify three stages of the program development life cycle from the following list of words. analysis decomposition design input pseudocode testing variable 1 .................…
Algorithm design and problem-solving · 6 marks · official answer ready
5 Describe three methods that are used to design and construct a solution to a problem. Method 1 ..................................................................................…
Algorithm design and problem-solving · 3 marks · official answer ready
(a) Complete the given pseudocode algorithm. [3]
Algorithm design and problem-solving · 6 marks · official answer ready
(a) Complete the flowchart for the program. START STOP [6] 7 , ,
Algorithm design and problem-solving · 0 marks
9 An algorithm has been written in pseudocode to check if a temperature is in a given range. The temperature values used in the algorithm are correct. 01 REPEAT 02 OUTPUT "Please …
Algorithm design and problem-solving · 7 marks
(c) Complete the trace table for the corrected algorithm using this data: Temperature OUTPUT [2] 10 , , 10 A shop that sells cheese has set up a new database table called CheeseSt…
Algorithm design and problem-solving · 1 mark · official answer ready
1 Tick (✓) one box to complete this sentence. A solution to a problem may be represented using pseudocode, flowcharts or A procedures. B processes. C structure diagrams. D sub-sys…
Algorithm design and problem-solving · 4 marks · official answer ready
(a) Draw one line to link each flowchart symbol to its correct purpose. Not all purposes will be used. Flowchart symbol Purpose subroutine process flow decision terminator [4] 3 ,…
Algorithm design and problem-solving · 6 marks · official answer ready
(b) An algorithm needs to total 50 numbers between 1 and 100 inclusive. Draw a flowchart that: • uses a count-controlled loop from 1 to 50 • uses an appropriate prompt to ask for …
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 .......................................................…
Algorithm design and problem-solving · 3 marks · official answer ready
(b) A bubble sort algorithm can be written to include features that make it more efficient. Explain why the corrected bubble sort algorithm is efficient. .........................…
