Algorithm design and problem-solving
178 questions. Open a question to solve it and check the official answer.
Algorithm design and problem-solving · 3 marks · official answer ready
(iii) Identify three other methods Rebekah could use to help keep her data safe. Method 1 .........................................................................................…
Algorithm design and problem-solving · 6 marks · official answer ready
(c) Write an algorithm for the part of Task 3 that checks the age of all the members, and whether they are in a team, then updates the type of membership and the annual fee if req…
Algorithm design and problem-solving · 6 marks · official answer ready
(a) Complete the pseudocode algorithm: 01 FOR Count 1 TO .................................................................................................... O2 Reading[Count] 0 0…
Algorithm design and problem-solving · 6 marks · official answer ready
3 (a) A PIN (personal identification number) is input into a banking app by the user. Before the PIN is accepted, the following validation checks are performed: • check 1 – each c…
Algorithm design and problem-solving · 4 marks · official answer ready
(a) Complete the trace table for the algorithm using this input data: Sold Stock Total OUTPUT [4]
Algorithm design and problem-solving · 3 marks · official answer ready
(b) Identify the problem that will occur if the input data starts with a value of 70. Explain how you would correct this problem. .................................................…
Algorithm design and problem-solving · 6 marks · official answer ready
(c) Write an algorithm to show how your program allocates a parking space if the visitor requires accessible parking (part of Task 2), including all relevant input and output, usi…
Algorithm design and problem-solving · 2 marks · official answer ready
4 Describe one type of test data that must be used to test if a program accepts valid input data. .................................................................................…
Algorithm design and problem-solving · 4 marks · official answer ready
(a) Identify the four errors in the pseudocode and suggest a correction for each error. Error 1 ...................................................................................…
Algorithm design and problem-solving · 5 marks · official answer ready
6 This flowchart represents an algorithm to divide three-digit numbers into hundreds, tens and units. The pre-defined function DIV gives the value of the result of integer divisio…
Algorithm design and problem-solving · 6 marks · official answer ready
(c) Write an algorithm for the part of Task 2 that calculates the total cost of the bill. Assume that the customer details and services required have already been input. Use pseud…
Algorithm design and problem-solving · 6 marks · official answer ready
(a) Complete the pseudocode algorithm: 01 FOR Count 1 TO .................................................................................................... 02 Reading[Count] 0 0…
Algorithm design and problem-solving · 2 marks · official answer ready
(c) Identify two other validation checks that could be used when inputting this identification number. 1 ..........................................................................…
Algorithm design and problem-solving · 4 marks · official answer ready
(a) Complete the trace table for the algorithm using this input data: “Y”, “Y”, “Y”, “Y”, “Y”, “Y”, “N” Stock Total Sale OUTPUT [4]
Algorithm design and problem-solving · 6 marks · official answer ready
(c) Data can also be damaged accidentally. One example of how data can be damaged accidentally is by shutting down a computer before saving data. To prevent this from happening, a…
Algorithm design and problem-solving · 1 mark · official answer ready
(ii) Identify how this protocol changes the data to transmit the data securely. ...................................................................................................…
Algorithm design and problem-solving · 1 mark · official answer ready
(d) Frida compresses the document for storage. The compression algorithm she uses recognises repeating patterns in the data and indexes these patterns. No data is permanently remo…
Algorithm design and problem-solving · 5 marks · official answer ready
(d) Write an algorithm to show how your program completes Task 3 assuming the option to sponsor a wooden plank has been chosen, using pseudocode, programming statements or a flowc…
Algorithm design and problem-solving · 4 marks · official answer ready
3 Give one piece of normal test data and one piece of erroneous test data that could be used to validate the input of an email address. State the reason for your choice in each ca…
Algorithm design and problem-solving · 6 marks · official answer ready
(a) Complete this flowchart: START PassCount 0 FailCount 0 Count 0 Yes No Count Count + 1 No Yes END [6] 9
