Learn a repeatable method for the 15-mark scenario-based programming question in Cambridge IGCSE 0478 or O Level 2210 Paper 2. You will break the scenario into stages, choose data structures, and write commented pseudocode that covers every mark point. It suits students practising past papers before the exam.
YouTube video: IGCSE | O Level Computer Science - The Scenario-based Question-15 Marks May/June 2026 Paper 22
Captions are available. Use CC in the YouTube player.
Choose a chapter (6)
- Video length
- 24 min 41 s
- Time to do it
- 30 minutes
- Difficulty
- Medium
- Steps
- 9
What you need
Steps
Read the whole scenario twice and highlight every requirement it asks for, such as totals, averages, counts or conditions.
List the programming techniques the question needs, like iteration, selection, counting, totaling and finding a maximum.
Work out the inputs, the processing and the outputs before writing any code.
Declare your variables and arrays with suitable data types, for example a one-dimensional array of 365 real values for daily rainfall.
Initialise the array and use a loop to input and store each daily value.
Process the data in separate stages: total the rainfall, convert millimetres to centimetres, and calculate the mean rounded to four decimal places.
Count the days with zero rainfall, then track the longest run of consecutive dry days with a counter and a maximum variable.
Apply the drought condition of 15 or more consecutive days without rainfall and output each result with a clear message.
Add comments, use meaningful identifiers and check the pseudocode against every highlighted requirement.
Tips and common mistakes
Break the problem into declaration, initialisation, input, processing and output so you never lose track of a mark.
Reset your consecutive-day counter whenever rainfall is recorded, or the longest dry spell will be wrong.
Write comments and meaningful variable names; they are part of how the examiner awards marks.
Questions
How many marks is the scenario-based question worth?
This question is worth 15 marks, so plan your time to leave enough for it in the paper.
Do I need to write real code?
No. The paper asks for pseudocode, so clear logic and structure matter more than a specific programming language.
What if I run out of time?
Write the declaration and input stages first, then add processing and output, so partial work still earns marks.
The notes are drafted automatically from video details and general task knowledge. How the guide was prepared
Report a correction


