Component parts of a problem: storage
Data the solution must keep, in a variable, file or database, so it can be used again later. It is not the same as input or output.
Understanding Component parts of a problem: storage in IGCSE Computer Science Paper 2
What it does: Writing the value to a file stores it after the program stops, so it can be read back and used again later. A database is storage for many records. The query reads stored data back, so it does not store anything new. Showing data to the user is output. Output is not the same as storage. Storage is where the name is kept after it is entered, for example in a variable, file or database.
Common mistakes: The comparison is the wrong way round. A new score should replace the stored high score only when it is greater, so the line should be IF Score > HighScore THEN. The program is saving the high score so it is kept after the program stops. It must write to the file with WRITEFILE, not read from it with READFILE. The line should be WRITEFILE "hs.txt", HighScore.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 94–106) and word search (Modules 94–118).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
storageFill in the Blanks
Spot the Error
Student with a class code? Join your class →