Algorithm design and problem-solving
175 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 · 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 .............................................…
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 ............................ Correction ...........…
Algorithm design and problem-solving · 2 marks · official answer ready
(b) Identify one method to make the algorithm maintainable. Give an example. ......................................................................................................…
Algorithm design and problem-solving · 3 marks · official answer ready
(a) Complete the trace table for the algorithm, using the input data: 21, 46, 63, 91, 12 Score Grade OUTPUT [3]
Algorithm design and problem-solving · 4 marks · official answer ready
(b) Explain how the flowchart can be changed to produce the correct output. .......................................................................................................…
Algorithm design and problem-solving · 4 marks · official answer ready
3 A range check is used to validate that the input temperature is an integer between –100 and 0, inclusive. Suggest suitable normal, abnormal, extreme and boundary test data to te…
