0478.1.0.15 — Write values into, and read values from, an • The first index can be zero or one: past paper questions
Real questions on 0478.1.0.15 — write values into, and read values from, an • the first index can be zero or one
The newest 9 of 9 written questions. Open one to see it on the real paper.
- 0478/21 · May/June 2026 · Q12[15]
A weather 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 → - 0478/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 → - 0478/22 · October/November 2025 · Q5b[3]
Describe the processes in the algorithm on page 6.
See it on the paper → - 0478/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 → - 0478/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 → - 0478/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 → - 0478/21 · May/June 2025 · Q11[15]
The one-dimensional (1D) array CompetitorName[] contains the names of 25 competitors in a tournament that includes five events. Another two-dimensional (2D) array CompetitorScore[] contains the points scored by each competitor in the five events. The first dimension of this array contains the index of the competitor fr...
See it on the paper → - 0478/23 · May/June 2025 · Q8[15]
The two-dimensional (2D) array Video[] is used to store, for each video item, the title, the format of the video (4K Blu-ray disc, standard Blu-ray disc, DVD, or digital download), the year it was released stored as a string and a storage code to represent where the video can be found in the collection, for example: Vi...
See it on the paper → - 0478/21 · May/June 2024 · Q10[15]
Write a program that meets the following requirements: allows the number of matches played to be input and stored, with a maximum of 22 matches validates the number of matches played allows the names of the cricket clubs to be input and stored allows the number of matches won, drawn and lost to be input and stored for...
See it on the paper →
What examiners said
This question was a good differentiation question testing the candidate’s ability to solve a problem by either using program code or pseudocode. The candidates were asked to meet three requirements, requirement 1 was to input each competitor’s score, for each of the five events, validating the entry to ensure it fell with in the range of 0 to 100. Requirement 2 was to find the maximum score for ea...
— Examiner report, May/June 2025, 0478/21 Q11 (Cambridge)
Candidates were required to complete an extended program using pseudocode, or program code, to meet a set of requirements given in a scenario intended for a collector to store details of their video library. The program was to display a menu and then to allow three options: • Add a new video to the video library, including its title, its format (4 K Blu-ray, Standard Blu-ray, DVD or digital down...
— Examiner report, May/June 2025, 0478/23 Q8 (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.