Skip to content
IGCSE Computer Science 0478 · Data representation · 14

0478.1.0.14 — Understand the use of arrays • Including the use of variables as indexes in arrays: past paper questions

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

Real questions on 0478.1.0.14 — understand the use of arrays • including the use of variables as indexes in arrays

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

  1. 0478/22 · May/June 2026 · Q10[15]

    A program is required to record and analyse the daily rainfall in millimetres for one year. Assume a year has 365 days. The one-dimensional (1D) array Rainfall[] is used to store the daily rainfall measurements. Write a program for the following requirements: • • • • • Initialise the array Rainfall[] to zero. Input the...

    See it on the paper →
  2. 0478/23 · May/June 2026 · Q10[8]

    The one‑dimensional (1D) array RiverNames[] stores the names of the rivers. The two‑dimensional (2D) array RiverStats[] stores the daily measurement of biological oxygen demand (BOD) for each river. The two‑dimensional (2D) array DaysCount[] stores the number of days each river is classed as moderately polluted and the...

    See it on the paper →
  3. 0478/22 · February/March 2026 · Q9[15]

    A program is required to enable voting in class surveys, for example to find the most popular smartphone. The one‑dimensional (1D) array Options[] is used to store between 2 and 12 options on which users can vote. The one‑dimensional (1D) array Votes[] is used to store the votes of between 2 and 1000 users. • • • • • •...

    See it on the paper →
  4. 0478/21 · October/November 2025 · Q11[15]

    The one-dimensional (1D) array CompetitorName[] is used to store the names of the competitors. The maximum number of competitors is 30. There are 10 rounds in the competition with a maximum score of 30 per round. The two-dimensional (2D) array CompetitorScore[] stores the score in each of the 10 rounds for each competi...

    See it on the paper →
  5. 0478/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. 0478/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. 0478/22 · October/November 2025 · Q2c(i)[2]

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

    See it on the paper →
  8. 0478/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 →
  9. 0478/23 · October/November 2025 · Q10[15]

    A number game has two players. Random whole numbers are generated for each player. The numbers are compared and players are given points based on the result of the comparison. The two-dimensional (2D) array NumberGenerated[] stores each number generated for each player. The first dimension stores the player number and...

    See it on the paper →
  10. 0478/22 · February/March 2025 · Q10[15]

    A sports club uses a six-character alphanumeric membership code to identify each member of the club. The one-dimensional (1D) array MemberID[] is used to store the unique membership codes for club members. The two-dimensional (2D) array Name[] is used to store the names of the club members. The first and last name of e...

    See it on the paper →
  11. 0478/22 · October/November 2024 · Q12[15]

    A one-dimensional (1D) array Rooms[] contains the names of up to 20 rooms in a house. A two-dimensional (2D) array Dimensions[] is used to store the length, width and area of each room. The position of any room’s data is the same in both arrays. For example, the data in index 5 of Dimensions[] belongs to the room in in...

    See it on the paper →
  12. 0478/23 · October/November 2024 · Q12[15]

    Members of a litter picking group complete a litter pick every month. Members’ names are stored in one-dimensional (1D) array PickerName[] Each member stores the weight of the litter they have picked in another one-dimensional (1D) array PickedWeight[] The weights are in kilograms with one decimal place, for example 8....

    See it on the paper →
  13. 0478/22 · May/June 2024 · Q9b[2]

    what the algorithm represented by the flowchart is doing.

    See it on the paper →
  14. 0478/23 · May/June 2024 · Q4a[4]

    Identify the line numbers of the four errors in the pseudocode and suggest corrections. Error 1 line number Correction Error 2 line number Correction Error 3 line number Correction Error 4 line number Correction

    See it on the paper →
  15. 0478/23 · May/June 2024 · Q4b[4]

    Write the pseudocode that you could add to the end of this algorithm to output the contents of the array. Make sure that the output ends when the data in the array ends.

    See it on the paper →
  16. 0478/23 · May/June 2024 · Q4c[4]

    Explain how you could alter the original corrected algorithm to make sure that the number of elements being added to the array does not exceed the maximum size of the array (50 elements).

    See it on the paper →
  17. 0478/23 · May/June 2024 · Q9[34]

    A one-dimensional (1D) array Teams[] contains the names of 10 football teams in a local league. A two-dimensional (2D) array Results[] stores, for each team, the total number of: • • • • games won games drawn games lost points. The position of any team’s data is the same in both arrays. For example the data in index 3...

    See it on the paper →
  18. 0478/22 · February/March 2024 · Q11[15]

    Students in a class are recording the amount of time in minutes spent in front of a screen for each day of the week. The one-dimensional (1D) array StudentName[] contains the names of the students in the class. The two-dimensional (2D) array ScreenTime[] is used to input the number of minutes on each day spent in front...

    See it on the paper →
  19. 0478/23 · October/November 2023 · Q10[15]

    A weather station takes temperature readings once an hour for a week. These temperatures are stored in a two-dimensional (2D) array Temperatures[] Each column contains 24 readings for a single day. The first temperature is recorded at 00:00 and the final temperature at 23:00. There are seven columns, one for each day o...

    See it on the paper →
  20. 0478/21 · May/June 2023 · Q2[1]

    Tick (ü) one box to show the name of the data structure used to store a collection of data of the same data type.

    See it on the paper →

What examiners said

Comprehensive responses • Most candidates gave their response using either pseudocode or Python. • Many candidates initialised their arrays at an appropriate place in their program. • Most candidates allowed correct inputs to take place within their program and these inputs were validated. • Most candidates wrote code to enable the options for the survey to be input and stored. • Most candidates e...

— Examiner report, February/March 2026, 0478/22 Q9 (Cambridge)

Candidates were required to complete an extended program to meet a set of requirements given in a scenario based on adding and outputting membership details of a sports club. The program was to display a menu to allow three options: • add a new member by entering a new membership code, chosen by the new member, with the program checking to make sure it had a length of six characters and that it h...

— Examiner report, February/March 2025, 0478/22 Q10 (Cambridge)

Candidates were asked to meet three requirements. Requirement 1 was to find the maximum, minimum and average temperature reading for each day. Requirement 2 was to find the maximum, minimum and average temperature reading for the week and requirement 3 was to output the temperatures for each day and the week. Requirement 1 was quite well attempted by most candidates who used a nested loops and th...

— Examiner report, October/November 2023, 0478/23 Q10 (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.

0478.1.0.14 — Understand the use of arrays • Including the use of variables as indexes in arrays — IGCSE Computer Science 0478 past paper questions | AssessPro