0478.1.0.07 — can be static or dynamic: past paper questions
Real questions on 0478.1.0.07 — can be static or dynamic
The newest 20 of 52 written questions. Open one to see it on the real paper.
- 0478/22 · February/March 2026 · Q5c[2]
Describe a possible problem with the algorithm that could mean the names are not sorted accurately.
See it on the paper → - 0478/21 · October/November 2025 · Q4a[5]
A restaurant offers a fixed priced menu. A meal for an adult costs $9.99 and a meal for a child costs $6.99. If there are 6 or more people at a table, a 15% discount is applied to the total cost of the order. Write an algorithm in pseudocode to: • • • input the number of adults and the number of children at a table cal...
See it on the paper → - 0478/21 · October/November 2025 · Q10b[4]
The procedure Time(TotalSeconds) takes the number of seconds as a parameter. The procedure converts the value held in the parameter into minutes and seconds and outputs the result. Write this procedure in pseudocode.
See it on the paper → - 0478/22 · May/June 2025 · Q7a[6]
Complete the flowchart. 0 Total 0 Count START Yes No Yes STOP No
See it on the paper → - 0478/22 · May/June 2025 · Q7b[4]
Explain how you would alter the flowchart in 7(a) so that it will individually store each accepted value as it is entered and then output all the numbers, one after the other, outside of the loop that inputs values. You may include program statements or flowchart symbols in your answer, but they must be fully explained...
See it on the paper → - 0478/23 · May/June 2025 · Q1b[4]
Explain how you would alter the flowchart in 1(a) so that it calculates and outputs the average weight of only the biscuits that passed the weight check. You may include program statements or flowchart symbols in your answer, but they must be fully explained.
See it on the paper → - 0478/23 · May/June 2025 · Q3a[4]
Identify the line numbers of four 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
See it on the paper → - 0478/23 · October/November 2024 · Q6a[3]
Complete the given pseudocode algorithm.
See it on the paper → - 0478/23 · October/November 2024 · Q6b[3]
Write pseudocode to display, with suitable messages: • • the number of values stored in the array the average of those values stored.
See it on the paper → - 0478/22 · February/March 2023 · Q2a[4]
Four descriptions and five pseudocode statements are shown. Draw one line to link each description to its most appropriate pseudocode statement. Not all pseudocode statements will be used. Description Pseudocode statement a statement to count FOR Count Value 1 TO 10 Value + NewValue a statement to total WHILE Value > 1...
See it on the paper → - 0478/22 · February/March 2023 · Q2b[5]
Write an algorithm in pseudocode, using a single loop, to output the average of 50 numbers that have been stored in the array Number[]
See it on the paper → - 0478/22 · February/March 2023 · Q4[3]
Describe how variables and constants are used in programming.
See it on the paper → - 0478/22 · February/March 2023 · Q6b[2]
Write pseudocode to check for an efficiency of 92% or over for this appliance and to output “A-rated” if the efficiency is 92% or over.
See it on the paper → - 0478/22 · February/March 2023 · Q10a[3]
Write pseudocode statements to declare the variables X, Y and Z
See it on the paper → - 0478/22 · February/March 2023 · Q11[15]
The one-dimensional (1D) array TeamName[] contains the names of teams in a sports league. The two-dimensional (2D) array TeamPoints[] contains the points awarded for each match. The position of each team’s data in the two arrays is the same. For example, the team stored at index 10 in TeamName[] and TeamPoints[] is the...
See it on the paper → - 0478/23 · October/November 2022 · Q1b[3]
Explain how your program allowed only two floors or three floors to be chosen but not both.
See it on the paper → - 0478/22 · May/June 2022 · Q1b[3]
Explain how your program showed the days available for booking in Task 1.
See it on the paper → - 0478/23 · May/June 2022 · Q1a[4]
Identify one variable and one array you could have used for Task 1 or Task 2. Give the use for the variable and array. Variable Use Array Use
See it on the paper → - 0478/23 · May/June 2022 · Q1d[6]
Write an algorithm to show how your program completes the following parts of Task 2: • • • • output the booking details and cost of the booking take confirmation from the client generate a unique booking code store the booking details. Assume that Task 1 and the first part of Task 2 have been completed. Assume that the...
See it on the paper → - 0478/23 · May/June 2022 · Q1e[4]
Explain how your program selects a meeting room, finds and then outputs the days when it is available (part of Task 3). Any programming statements used in your answer must be fully explained. Section B
See it on the paper →
What examiners said
Comprehensive responses • Many candidates understood that only one of the columns in the array was being checked and sorted. Limited responses • Some candidates mixed up that last names were being sorted, and first names were not used, stating that the array was being sorted by first names only.
— Examiner report, February/March 2026, 0478/22 Q5(c) (Cambridge)
Most candidates achieved some marks for completing a flowchart. Candidates who filled the various boxes with appropriate comments, for example, decisions in decision boxes, and who were consistent with their use of the same variables throughout, achieved the highest marks.
— Examiner report, May/June 2025, 0478/22 Q7(a) (Cambridge)
Candidates who recognised that an array would be a better data structure to store the numbers with the use of the counter variable as the array index and then went on to describe a second loop after the given loop, for the purpose of outputting the contents of the array achieved the highest marks.
— Examiner report, May/June 2025, 0478/22 Q7(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.