Algorithm design and problem-solving
178 questions. Open a question to solve it and check the official answer.
Algorithm design and problem-solving · 6 marks · official answer ready
(a) Identify two security solutions that can be provided to help prevent hackers being successful. Explain how each solution helps prevent hackers being successful. Solution 1 ...…
Algorithm design and problem-solving · 3 marks · official answer ready
2 Identify three different types of test data that can be used to test a program. 1 ...............................................................................................…
Algorithm design and problem-solving · 2 marks · official answer ready
(b) The final cost of the order after the discount may have more than 2 decimal places. Write a pseudocode statement to set the final cost of the order to 2 decimal places. You do…
Algorithm design and problem-solving · 4 marks · official answer ready
5 A hotel booking system is an example of a computer system that is made up of sub-systems. The booking system: • allows the user to select the room type and the number of nights …
Algorithm design and problem-solving · 4 marks · official answer ready
(a) Identify the line numbers of the four errors in the pseudocode and suggest a correction for each error. Error 1 line number ......................................... Correctio…
Algorithm design and problem-solving · 4 marks · official answer ready
(a) Complete the tables, using the flowchart, for the given data: Input data: 20 Count Number Value Output Input data: 110 Count Number Value Output [4] * 0000800000010 * DFD 10 ,…
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 .....…
Algorithm design and problem-solving · 6 marks · official answer ready
3 A program is written that will only accept values between –99.99 and +99.99, inclusive. The program is to be tested. The table, when completed, shows appropriate test data that …
Algorithm design and problem-solving · 1 mark
4 (a) A length check is a type of validation check. State the purpose of a length check. ..........................................................................................…
Algorithm design and problem-solving · 27 marks · official answer ready
(a) The first data row of the trace table shows the values currently stored in CodeStore[] Complete the trace table for the algorithm, using the input data: 7686, Face, Speed, 432…
Algorithm design and problem-solving · 4 marks · official answer ready
(a) Complete the trace table for the algorithm using the following numbers: Count Number Lowest Highest [4]
Algorithm design and problem-solving · 2 marks · official answer ready
(a) The algorithm uses the one-dimensional (1D) array ClassList that contains the following data: ClassList 1 2 3 4 5 Henil Sven Ella Asia Ridwan Complete the table by writing the…
Algorithm design and problem-solving · 1 mark · official answer ready
(b) Identify the standard method of solution used by the flowchart. ...............................................................................................................…
Algorithm design and problem-solving · 6 marks · official answer ready
(c) Write the algorithm in pseudocode. ............................................................................................................................................…
Algorithm design and problem-solving · 3 marks · official answer ready
(a) Identify the line numbers of the three errors in the pseudocode and suggest a correction for each error. Error 1 line number ................................... Correction ...…
Algorithm design and problem-solving · 1 mark · official answer ready
(b) Identify one programming technique used in the algorithm. .....................................................................................................................…
Algorithm design and problem-solving · 1 mark
(i) The algorithm can accept a number between 1 and 255 inclusive as input. Two validation checks that could be applied to DenaryNumber are a presence check and a type check. Iden…
Algorithm design and problem-solving · 3 marks · official answer ready
(ii) Write the pseudocode to implement the validation check you identified in (c)(i). You do not need to rewrite the whole algorithm. .............................................…
Algorithm design and problem-solving · 1 mark · official answer ready
1 Tick (ü) one box to identify the type of test to only check for the largest or smallest acceptable value. A normal test data B abnormal test data C extreme test data D boundary …
Algorithm design and problem-solving · 3 marks · official answer ready
(b) Identify and describe one verification check that could be applied when a new password is input into a system. Verification check .............................................…
