Skip to content
O Level Computer Science 2210 · Topic 8

Programming: past paper questions

270 real questionsasked in 10 of the last 10 exam series2019–2025usually: Write, Identify, Explain, Describe, Complete

Real questions on programming

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

  1. 2210/12 · October/November 2025 · Q3a[2]

    Describe what is meant by assembly language.

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

    Identify the translator needed for assembly language.

    See it on the paper →
  3. 2210/12 · October/November 2025 · Q3c[1]

    A It is close to human language. B It is memory efficient. C It is easy to debug. (c) Tick (✓) one box to show which statement is an advantage of using assembly language.

    See it on the paper →
  4. 2210/13 · October/November 2025 · Q6c[2]

    The computer game is programmed using a high-level language. Explain one difference between a high-level language and a low-level language.

    See it on the paper →
  5. 2210/13 · October/November 2025 · Q6d(i)[1]

    Translates and executes the source code one line at a time.

    See it on the paper →
  6. 2210/13 · October/November 2025 · Q6d(ii)[1]

    Translates the source code and will not execute it if errors are found. It instead produces a full report of the errors in the source code.

    See it on the paper →
  7. 2210/13 · October/November 2025 · Q6d(iii)[1]

    Translates the source code and produces an executable file.

    See it on the paper →
  8. 2210/13 · October/November 2025 · Q6d(iv)[1]

    Stops execution of the machine code where an error is found and will resume execution of the machine code once the error is fixed.

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

    Identify the line numbers of five errors in the pseudocode and suggest a correction for each error. Error 1 line number Correction Error 2 line number Correction Error 3 line number Correction Error 4 line number Correction Error 5 line number Correction

    See it on the paper →
  10. 2210/22 · October/November 2025 · Q2b(i)[4]

    Complete the pseudocode for PROCEDURE NewData PROCEDURE NewData( ) 1 TO FOR Row FOR Column INPUT 1 TO 4

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

    Write the pseudocode to input the number of new contacts and to use procedure NewData. A variable declaration is not required.

    See it on the paper →
  12. 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 →
  13. 2210/22 · October/November 2025 · Q5b[3]

    Describe the processes in the algorithm on page 6.

    See it on the paper →
  14. 2210/22 · October/November 2025 · Q5c[4]

    The algorithm on page 6 requires the array CodeStore[] to be declared as a one‑dimensional (1D) string array with six elements that are initially set to the null string "". Write the pseudocode required to declare and initialise the array CodeStore[] You do need to declare any variables used.

    See it on the paper →
  15. 2210/22 · October/November 2025 · Q8[15]

    A program is required to test the fairness of the random number generator. The one‑dimensional (1D) array RandomNumber[] is used to store 100 000 random integers. The two‑dimensional (2D) array CountedNumber[] is used to store the integers 1 to 10, inclusive, and the frequency of each integer (the number of times each...

    See it on the paper →
  16. 2210/23 · October/November 2025 · Q1[3]

    Give three ways of creating a maintainable program.

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

    Four descriptions of programming techniques and five programming techniques are given. 2 Draw one line from each description to the relevant technique. Not all techniques will be used. Description Programming technique output adding up a set of numbers selection displaying the result of a calculation totalling executin...

    See it on the paper →
  18. 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 →
  19. 2210/23 · October/November 2025 · Q4b[4]

    Each booking must have at least one adult ticket. Explain how the algorithm could be changed to repeatedly ask for the number of adult tickets if the number input is less than 1. Any code used must be fully explained.

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

    The algorithm does not work correctly. State the reason why the algorithm does not work as expected and explain how the algorithm could be corrected. Any code used must be fully explained. Reason Correction

    See it on the paper →

What examiners said

Many candidates correctly stated format check, which was the only correct answer for this question. Other incorrect validation checks were seen, including type check and presence check.

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

Candidates were required to give an example of normal data and an example of abnormal data that could be used to make sure the check in part (a) is working correctly. In each case, a reason was required. The normal data needed to be any series of digits in the format 99/99/9999 and the abnormal data could be anything that wasn’t a series of digits in the given format, or anything that was an attem...

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

Candidates were asked to describe how a length check could be used as a further validation check for a date that had been entered. Many candidates correctly stated that this check would ensure that the date was 10 characters in total (if the slashes are included). Some candidates went on to expand the answer to state that if the answer was not the correct length, it would be rejected, and achieved...

— Examiner report, October/November 2023, 2210/22 Q2(c) (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.

Programming — O Level Computer Science 2210 past paper questions | AssessPro