0478.7.0.08: – structure diagrams – flowcharts – pseudocode: past paper questions
Real questions on 0478.7.0.08: – structure diagrams – flowcharts – pseudocode
The newest 20 of 46 written questions. Open one to see it on the real paper.
- 0478/21 · May/June 2026 · Q10a[6]
Draw a flowchart to input six whole numbers and output the highest. You do not need to validate the inputs. START
See it on the paper → - 0478/22 · May/June 2026 · Q1[1]
Tick (3) one box to complete the following sentence. Two types of pseudocode statements used for iteration are A CASE and IF B FOR … NEXT and IF C FOR … NEXT and WHILE … DO … ENDWHILE 1
See it on the paper → - 0478/21 · October/November 2025 · Q7a[4]
Complete the tables, using the flowchart, for the given data: Input data: 20 Count Number Value Output Number Value Output Input data: 110 Count
See it on the paper → - 0478/21 · May/June 2025 · Q10b[4]
Explain how the flowchart can be changed to produce the correct output.
See it on the paper → - 0478/23 · May/June 2025 · Q1a[6]
Complete this flowchart. 0 RejectCount 0 PassCount START Yes No No Yes STOP
See it on the paper → - 0478/23 · May/June 2025 · Q4b(ii)[5]
Write the pseudocode to allow a new password to be entered and to ensure that it contains at least 12 characters. The password is re-input until it meets this requirement. Use an appropriate error message for inputs that do not meet the requirement. You do not need to declare any variables for this algorithm.
See it on the paper → - 0478/22 · May/June 2024 · Q6a[4]
an algorithm in pseudocode to total the numbers input and to output the total. You do not need to validate the input.
See it on the paper → - 0478/22 · May/June 2024 · Q6b[4]
an algorithm in pseudocode to count and output the number of input values that are greater than 100. You do not need to validate the input.
See it on the paper → - 0478/22 · May/June 2024 · Q9a[5]
the trace table using the data given in the array.
See it on the paper → - 0478/22 · February/March 2024 · Q8[4]
This flowchart represents an algorithm to find the average size of groups of visitors to an attraction. START NumberGroups Total 0 0 INPUT GroupSize IS GroupSize = 0? Yes Average No NumberGroups Total NumberGroups + 1 Total + GroupSize DIV(Total, NumberGroups) OUTPUT "Average group size ", Average STOP Complete the tra...
See it on the paper → - 0478/21 · October/November 2023 · Q8b[6]
the flowchart for this algorithm.
See it on the paper → - 0478/21 · May/June 2023 · Q8a[3]
Write the pseudocode statements to: store the string "The beginning is the most important part" in Phrase; calculate and output the length of the string; output the string in upper case.
See it on the paper → - 0478/21 · May/June 2023 · Q8b[2]
Write the output your pseudocode should produce.
See it on the paper → - 0478/23 · October/November 2022 · Q2a[6]
Complete the pseudocode algorithm: 01 02 1 TO FOR Count Reading[Count] 0 03 NEXT Count 04 Count 05 OUTPUT "Please enter next reading " 06 INPUT Value 07 REPEAT 08 09 1 IF Value < 35 OR THEN 10 11 OUTPUT "Reading out of range" ELSE 12 Reading[Value] 13 Count = Count + 1 14 ENDIF 15 IF Count <= 50 16 THEN 17 18 OUTPUT "P...
See it on the paper → - 0478/22 · May/June 2022 · Q1d[6]
Write an algorithm for the part of Task 2 that inputs the tickets and extra attractions required then calculates the total cost of the booking. Assume that the booking is for a single day. Use pseudocode, programming statements or a flowchart.
See it on the paper → - 0478/23 · May/June 2022 · Q5[6]
The flowchart shows an algorithm that should: allow 100 numbers to be entered into the variable Number total the numbers as they are entered output the total and average of the numbers after they have all been entered. • • • Complete this flowchart: START Total Counter 0 0 No Yes END
See it on the paper → - 0478/21 · October/November 2021 · Q1c[3]
how your program generates a unique 4-digit code for each booking.
See it on the paper → - 0478/21 · October/November 2021 · Q1e[4]
how your program completed the part of Task 3 which calculates the total number of squash court bookings, finds the court(s) with the most bookings and displays this information. Include any programming statements that you have used and fully explain the purpose of each statement.
See it on the paper → - 0478/21 · October/November 2021 · Q3a[3]
an example of each piece of boundary test data.
See it on the paper → - 0478/22 · October/November 2021 · Q1c[6]
Write an algorithm to show how your program carries out Task 3, using either pseudocode, programming statements or a flowchart. Assume Tasks 1 and 2 have already been completed.
See it on the paper →
What examiners said
A minority of candidates identified correctly how to change the flow diagram to produce the correct output. Those who only gave one input data also identified that a loop should have been added to input the rest of the data.
— Examiner report, May/June 2025, 0478/21 Q10(b) (Cambridge)
Most candidates achieved some marks for completing the given 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/23 Q1(a) (Cambridge)
Candidates were asked to write the pseudocode that would provide a length check to make sure new passwords were at least 12 characters in length. This required the use of the string handling function LENGTH. Some candidates provided good responses and achieved most or all the marks. However, some common issues were that the check was not in a loop, which was required to meet the criterion that exp...
— Examiner report, May/June 2025, 0478/23 Q4(b)(ii) (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.