Computer Science 2210 · 7

Algorithm design and problem-solving

175 questions. Open a question to solve it and check the official answer.

2020 October-November · Paper 22 · Q3

Algorithm design and problem-solving · 6 marks · official answer ready

3 This pseudocode algorithm is used as a validation check. PRINT "Input a number from 1 to 5000" REPEAT INPUT Number IF Number < 1 OR Number > 5000 THEN PRINT "Invalid number, ple…

2020 October-November · Paper 22 · Q5(a)

Algorithm design and problem-solving · 25 marks · official answer ready

(a) The contents of the array at the start of the algorithm are: Num[0] Num[1] Num[2] Num[3] Num[4] 45 56 30 12 15 Complete the trace table for the algorithm using the data given …

2020 October-November · Paper 22 · Q6

Algorithm design and problem-solving · 2 marks · official answer ready

6 Draw a flowchart symbol to represent each of the following: Input/Output Decision [2] Question 7 starts on Page 12. reasonable effort has been made by the publisher (UCLES) to t…

2020 October-November · Paper 23 · Q1(b)(i)

Algorithm design and problem-solving · 5 marks · official answer ready

(i) Write an algorithm to allow a customer to choose the filling and salad items for their baguette (part of Task 1), using either pseudocode, programming statements or a flowchar…

2020 October-November · Paper 23 · Q2(b)

Algorithm design and problem-solving · 4 marks · official answer ready

(b) Give line numbers where the four errors are to be found in the pseudocode. Suggest a correction for each error. Error 1 line number ...........................................…

2020 October-November · Paper 23 · Q4(a)

Algorithm design and problem-solving · 4 marks · official answer ready

(a) Complete a trace table for this set of input data: 11, 4, 6, 2, 3, 9, 3, 2, 2, 6, 0, 0, 1, 1 Y Z A OUTPUT [4]

2019 October-November · Paper 13 · Q1(c)(ii)

Algorithm design and problem-solving · 4 marks · official answer ready

(ii) Videos on the library website show customers which books the library will soon have in stock. The library wants the file size of a video to be as small as possible. Identify …

2019 October-November · Paper 22 · Q1(c)

Algorithm design and problem-solving · 5 marks · official answer ready

(c) Write an algorithm for Task 2, using either pseudocode, programming statements or a flowchart. Assume that Task 1 has been completed. .........................................…

2019 October-November · Paper 22 · Q3(a)

Algorithm design and problem-solving · 4 marks · official answer ready

3 (a) The flowchart checks the lengths of a batch of 10 ropes. For the batch to be accepted 90% of the lengths need to be between 24.9 and 25.1 metres. START Reject 0 Count 0 Yes …

2019 October-November · Paper 22 · Q4

Algorithm design and problem-solving · 3 marks · official answer ready

4 Four validation checks and four descriptions are shown. Draw a line to connect each validation check to the correct description. Validation Check Description Range check Checks …

2019 October-November · Paper 23 · Q1(c)

Algorithm design and problem-solving · 6 marks · official answer ready

(c) Write an algorithm for Task 1, using either pseudocode, programming statements or a flowchart. Assume that the first part of Task 1, the storage and display of tile descriptio…

2019 October-November · Paper 23 · Q5(a)

Algorithm design and problem-solving · 100 marks · official answer ready

(a) Complete the trace table for the input data: 10 First Last UserIn Middle Found OUTPUT [6]

2019 October-November · Paper 23 · Q6

Algorithm design and problem-solving · 4 marks · official answer ready

6 Draw four different flowchart symbols and describe how they are used in a program flowchart. Flowchart symbol Description of use [4] 12

2019 May-June · Paper 11 · Q6(a)

Algorithm design and problem-solving · 4 marks · official answer ready

(a) It currently requires employees to enter a username and a password to log-in to an account. Each password must be 8 letters. The company wants to increase the security of the …

2019 May-June · Paper 21 · Q1(b)

Algorithm design and problem-solving · 6 marks · official answer ready

(b) Write an algorithm to show how you calculated and output the number of late arrivals and the average number of minutes late for each bus route (part of Task 2), using either p…

2019 May-June · Paper 21 · Q4

Algorithm design and problem-solving · 0 marks

4 This section of program code may be used as a validation check. 1 PRINT "Input a value between 0 and 100 inclusive" 2 INPUT Value 3 WHILE Value < 0 OR Value > 100 4 PRINT "Inval…

2019 May-June · Paper 21 · Q7(b)

Algorithm design and problem-solving · 2 marks

(b) Describe what is happening in this validation check. ..........................................................................................................................…

2019 May-June · Paper 21 · Q7(d)

Algorithm design and problem-solving · 14 marks

(d) Draw a flowchart to represent this section of program code. [5] 12 5 The table, BEVERAGES, shows the number of calories in 100 ml of a range of popular beverages. It also show…

2019 May-June · Paper 22 · Q1(c)

Algorithm design and problem-solving · 5 marks · official answer ready

(c) Write an algorithm for the part of Task 2 that allows the buyer to add a new bid, using either pseudocode, programming statements or a flowchart. Assume that Task 1 has been c…

2019 May-June · Paper 22 · Q2(a)

Algorithm design and problem-solving · 4 marks · official answer ready

2 (a) An algorithm has been written in pseudocode to input 100 numbers, select and print the largest number and smallest number. Count 1 INPUT Number High Number Low Count REPEAT …