Skip to content
O Level Computer Science 2210 · Topic 7

Algorithm design and problem-solving: past paper questions

106 real questionsasked in 9 of the last 10 exam series2019–2026usually: Explain, Describe, Write, Complete, Draw

Real questions on algorithm design and problem-solving

The newest 20 of 106 written questions. Open one to see it on the real paper.

  1. 2210/21 · May/June 2026 · Q4[50]

    The following pseudocode algorithm uses a bubble sort to sort the array Names Complete the algorithm. sO) 5 < 17TO Last - IF Names[Index] > Names[Index + 1] THEN Temp < Names [Index] Names [Index] < Names[Index + 1] Names [Index + 1] < Temp Swap <— TRUE ENDIF NEXT Index Last < Last - 1 UNTIL Swap OR Last = 1 1 name and...

    See it on the paper →
  2. 2210/21 · May/June 2026 · Q10a[6]

    Draw a flowchart to input six whole numbers and output the highest. You do not need to validate the inputs.

    See it on the paper →
  3. 2210/21 · May/June 2026 · Q10b[3]

    Describe how the flowchart could be changed to only accept positive whole numbers.

    See it on the paper →
  4. 2210/22 · May/June 2026 · Q4[6]

    4 The program development life cycle is split into several stages. Outline what happens during the coding and testing stages of the program development life cycle. Turn over which contains letters and numbers. The name of the customer and the account ID are stored in the prepopulated two-dimensional (2D) array Accounts...

    See it on the paper →
  5. 2210/22 · May/June 2026 · Q6b[1]

    State the purpose of the algorithm shown by the flowchart.

    See it on the paper →
  6. 2210/22 · October/November 2025 · Q2c(i)[2]

    Explain why the given algorithm may not always give the expected results.

    See it on the paper →
  7. 2210/22 · October/November 2025 · Q2c(ii)[2]

    Explain how you could improve the algorithm so that the search is more likely to find the required results.

    See it on the paper →
  8. 2210/22 · October/November 2025 · Q5a[6]

    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, 432U, Yp79 CodeStore[] Store Count aBcd 1532 Face 63q8 OUTPUT Code

    See it on the paper →
  9. 2210/22 · October/November 2025 · Q5b[3]

    Describe the processes in the algorithm on page 6.

    See it on the paper →
  10. 2210/23 · October/November 2025 · Q4a[4]

    Tickets for a theme park are booked online. An adult ticket costs $12.99 and a child ticket costs $7.99. A booking fee of $1.99 is added to the total cost of each booking. Write an algorithm in pseudocode to: • • • input the number of adult tickets for a booking input the number of child tickets for a booking calculate...

    See it on the paper →
  11. 2210/23 · October/November 2025 · Q5a[4]

    Complete the trace table for the algorithm using the following numbers: 563, 21, 376, 99, 400 Count Number Lowest Highest

    See it on the paper →
  12. 2210/23 · October/November 2025 · Q6a[2]

    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 output from the flowchart when each of the given names are input. Name OUTPUT Ridwan Yan Ella

    See it on the paper →
  13. 2210/23 · October/November 2025 · Q6b[1]

    Identify the standard method of solution used by the flowchart.

    See it on the paper →
  14. 2210/23 · October/November 2025 · Q6c[6]

    Write the algorithm in pseudocode.

    See it on the paper →
  15. 2210/21 · May/June 2025 · Q3[4]

    The following pseudocode algorithm uses a count-controlled loop to read in 10 names and store them in the array Names[] 1 TO 10 FOR Count OUTPUT "Please enter a name" INPUT Name Name Names[Count] NEXT Count Rewrite the algorithm in pseudocode, using a condition-controlled loop instead of a count-controlled loop.

    See it on the paper →
  16. 2210/21 · May/June 2025 · Q4b[3]

    Explain how you could change the algorithm to repeatedly prompt for the telephone number until the number entered is 13 characters in length. Any code used must be fully explained.

    See it on the paper →
  17. 2210/21 · May/June 2025 · Q10a[3]

    Complete the trace table for the algorithm, using the input data: 21, 46, 63, 91, 12 Score Grade OUTPUT

    See it on the paper →
  18. 2210/21 · May/June 2025 · Q10b[4]

    Explain how the flowchart can be changed to produce the correct output.

    See it on the paper →
  19. 2210/22 · May/June 2025 · Q2[3]

    A fence measuring 2 metres in height and 20 metres in length needs painting. The area of the fence needs to be calculated so that enough paint for the job is purchased. After the task is decomposed, there are three component parts: input, process and output. Three component parts and four example descriptions are shown...

    See it on the paper →
  20. 2210/22 · May/June 2025 · Q6a[6]

    Complete the trace table for the algorithm, using the input data: 2, RACECAR, TREAT Number Index Word Continue V1 V2 L1 L2 OUTPUT

    See it on the paper →

What examiners said

This trace table question was answered well and many candidates achieved full, or near full marks. Common errors including not initialising totalling or counting variables in the trace table or adding incorrect punctuation such as extra commas or quotation marks to the output.

— Examiner report, October/November 2023, 2210/22 Q6(a) (Cambridge)

Candidates who described the algorithm as adding together a batch of numbers, or similar, achieved a mark. Candidates who then stated that this total along with the average of the numbers was output, achieved both marks.

— Examiner report, October/November 2023, 2210/22 Q6(b) (Cambridge)

Most candidates were able to match the life cycle descriptions to the correct life cycle stage.

— Examiner report, May/June 2023, 2210/21 Q1(a) (Cambridge)

Past papers, syllabus and examiner reports © UCLES (Cambridge University Press & Assessment). Questions are matched to topics from the official syllabus. AssessPro is independent and not endorsed by Cambridge.