Skip to content
IGCSE Computer Science (9–1) 0984 · Topic 8

Identify errors in given algorithms and suggest: past paper questions

37 real questionsasked in 9 of the last 10 exam series2019–2026usually: Write, Identify, Explain, State, Complete

Real questions on identify errors in given algorithms and suggest

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

  1. 0984/21 · May/June 2026 · Q11[5]

    The function Power (FirstNumber, SecondNumber) returns the value of FirstNumber raised to the power of SecondNumber. FirstNumber and SecondNumber are integers. Write pseudocode statements to: ¢ define the function * call the function with the variables A and B and store the return value in the variable Value function d...

    See it on the paper →
  2. 0984/21 · May/June 2026 · Q12[15]

    Aweather monitoring station records the number of minutes of sunshine for each day of a month. The one-dimensional (1D) array Sunshine [] is used to store the number of minutes of sunshine for each day. The index of the array represents the day. The one-dimensional (1D) array MonthDays[] contains the number of days in...

    See it on the paper →
  3. 0984/22 · October/November 2025 · Q1[1]

    The result of the arithmetic operation 4 ^ 2 is A 2 B 8 C 16 Tick (✓) one box to complete this sentence.

    See it on the paper →
  4. 0984/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 →
  5. 0984/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 →
  6. 0984/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 →
  7. 0984/21 · May/June 2025 · Q5[4]

    Two library routines used in programming are MOD and DIV. State the purpose of each of the library routines. Give one example pseudocode statement for each of the library routines. MOD purpose Example pseudocode DIV purpose Example pseudocode

    See it on the paper →
  8. 0984/21 · May/June 2025 · Q6a[4]

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

    See it on the paper →
  9. 0984/21 · May/June 2025 · Q6b[2]

    Identify one method to make the algorithm maintainable. Give an example.

    See it on the paper →
  10. 0984/21 · May/June 2025 · Q9b[6]

    The function Odds(X) returns ‘Odd’ if the value of X is an odd number and returns ‘Even’ if the value of X is an even number. Write pseudocode statements to: • • define the function call the function using parameter A and store the return item in variable B Function definition Function call

    See it on the paper →
  11. 0984/22 · May/June 2025 · Q5a[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 →
  12. 0984/22 · May/June 2025 · Q5b[2]

    Write the pseudocode statement that will output the average height rounded to one decimal place.

    See it on the paper →
  13. 0984/22 · May/June 2025 · Q5c[4]

    Explain how you could change the corrected algorithm so that it will also: • • find the height of the tallest person. output the height of the tallest person at the end of the algorithm. Any program statements used must be fully explained.

    See it on the paper →
  14. 0984/21 · May/June 2024 · Q2a[4]

    Draw one line to link each description to the most appropriate programming concept. Not all programming concepts will be used. Description Programming concept a subroutine that may not return a value a value that is declared and used within a specific procedure function procedure parameter a value that a procedure expe...

    See it on the paper →
  15. 0984/21 · May/June 2024 · Q2b[2]

    Write the pseudocode to use a procedure named Average that passes the values 25 and 50 to the procedure.

    See it on the paper →
  16. 0984/21 · May/June 2024 · Q2c[3]

    Outline the role of procedures and functions in creating a program that is easier to maintain.

    See it on the paper →
  17. 0984/21 · May/June 2024 · Q4b[2]

    Write the pseudocode statement that would output the average calculated in line 13 of the algorithm rounded to one decimal place.

    See it on the paper →
  18. 0984/21 · May/June 2023 · Q4[4]

    Explain the purpose of the library routines DIV and ROUND DIV ROUND

    See it on the paper →
  19. 0984/21 · May/June 2023 · Q5a[4]

    Identify the four errors in the pseudocode and suggest a correction for each error. Error Correction Error Correction Error Correction Error Correction

    See it on the paper →
  20. 0984/21 · May/June 2023 · Q6[4]

    State two features that should be included to create a maintainable program. Give a reason why each feature should be used.

    See it on the paper →

What examiners said

Most candidates were able to identify the correct purpose of MOD and DIV with only a few giving the correct pseudocode for MOD and DIV.

— Examiner report, May/June 2025, 0984/21 Q5 (Cambridge)

A minority of candidates identified four correct corrections. Most candidates identified two correct corrections. Some candidates identified the correction in the use of the ROUND function and the incorrect placement of the counter incrementing.

— Examiner report, May/June 2025, 0984/21 Q6(a) (Cambridge)

Some candidates achieved all the marks identifying a method to make the algorithm maintainable and giving a correct example using the algorithm in part (a).

— Examiner report, May/June 2025, 0984/21 Q6(b) (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.

Identify errors in given algorithms and suggest — IGCSE Computer Science (9–1) 0984 past paper questions | AssessPro