Algorithm design and problem-solving
178 questions. Open a question to solve it and check the official answer.
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 a…
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 · 1 mark · official answer ready
1 Tick (3) one box to complete this sentence. This flowchart symbol A represents a subroutine. B represents a decision. C represents an input/output. D represents a terminator. [1]
Algorithm design and problem-solving · 4 marks · official answer ready
(a) Identify the line numbers of the four errors in the pseudocode and suggest corrections. Error 1 line number ...................................................................…
Algorithm design and problem-solving · 6 marks · official answer ready
(a) Complete the trace table for the input data: L S T A Limit Count Value OUTPUT [6]
Algorithm design and problem-solving · 3 marks · official answer ready
(a) Give examples of normal, abnormal and extreme test data that could be used to make sure the program only accepts valid data. Normal test data .................................…
Algorithm design and problem-solving · 2 marks · official answer ready
(b) Describe what is meant by extreme test data. ..................................................................................................................................…
Algorithm design and problem-solving · 1 mark · official answer ready
1 Tick (✓) one box to show which task is part of the analysis stage of the program life cycle. A coding B decomposition C design D testing [1]
Algorithm design and problem-solving · 4 marks · official answer ready
2 (a) Four test data types and five descriptions are shown. Draw one line to link each test data type to its most appropriate description. Test data type Description abnormal a va…
Algorithm design and problem-solving · 4 marks · official answer ready
(b) An algorithm has been written to test if an integer that is input is in the range 5 to 10 inclusive. Identify an example of suitable test data for each test data type. Abnorma…
Algorithm design and problem-solving · 4 marks · official answer ready
(a) Write an algorithm in pseudocode to input a number, MyNumber, and use a linear search to test if that number is stored in the array. If the number is found in the array, the p…
Algorithm design and problem-solving · 4 marks · official answer ready
(b) Write an algorithm in pseudocode to sort the array Values[1:50] into ascending order using a bubble sort. .....................................................................…
Algorithm design and problem-solving · 3 marks · official answer ready
(a) Identify the line numbers of three errors in the pseudocode and suggest corrections. Error 1 line number ......................................................................…
Algorithm design and problem-solving · 4 marks · official answer ready
(ii) Describe two other validation checks that should be included in this algorithm. Check 1 ......................................................................................…
Algorithm design and problem-solving · 4 marks · official answer ready
8 This flowchart represents an algorithm to find the average size of groups of visitors to an attraction. START NumberGroups 0 Total 0 INPUT GroupSize IS Yes GroupSize Average DIV…
Algorithm design and problem-solving · 2 marks · official answer ready
(a) Describe what is meant by abstraction. ........................................................................................................................................…
Algorithm design and problem-solving · 3 marks · official answer ready
(b) Identify three of the component parts when a problem has been decomposed at the analysis stage. 1 .............................................................................…
Algorithm design and problem-solving · 2 marks · official answer ready
(c) Identify and describe one other stage of the program development life cycle. ..................................................................................................…
Algorithm design and problem-solving · 1 mark · official answer ready
(a) State the purpose of this pseudocode algorithm. ...............................................................................................................................…
Algorithm design and problem-solving · 1 mark · official answer ready
(a) State the name of the validation check. .......................................................................................................................................…
