CSC 283 · Information Systems and File Structures
Our notes
2 min readKinds of file by use
| File | Purpose | Example |
|---|---|---|
| Master | main permanent data, updated regularly | student records, account balances |
| Transaction (movement) | changes to be applied | payments this week |
| Reference (table) | fairly fixed data looked up by programs | course codes and titles, tax rates |
| Work (scratch) | temporary, inside a run | sorted transactions |
| Report / print | output waiting to be printed or sent | result slips |
| Archive / history | old data kept for law or audit | graduated students |
| Backup | copies kept for recovery | last night's copy |
File maintenance
Keeping the master file correct and up to date:
- Amendment of standing data (address, department), separate from routine updating (balances, scores).
- Insertion of new records and deletion of old ones (after archiving).
- Reorganisation to remove overflow and deleted records.
- Validation of input to keep rubbish out: format, range, type, presence, check digits and batch totals.
Check digits
A check digit is added to a code so typing errors are caught. The modulus 11 method: multiply each digit by a weight (from 2 up, counting from the right), add, and choose the check digit that makes the total divisible by 11 (X stands for 10).
Example for 4 2 7 1: weights 5, 4, 3, 2 give 20 + 8 + 21 + 2 = 51; 51 mod 11 = 7; check digit = 11 − 7 = 4. Code: 42714. Check: 51 + 4 × 1 = 55 = 5 × 11 ✓. Swapping two digits (42174) gives a different total and is caught.
Backup and recovery
- Grandfather-father-son (sequential files): the run that produces the new master (son) keeps the old master (father) and the one before (grandfather), each with its transactions. If the son is damaged, re-run from the father. Three generations are kept; older tapes are reused.
- Dumping (direct files): because direct files are updated in place, copy (dump) the whole file regularly and keep a transaction log (journal) of every change since. Recovery = reload the dump and re-apply the log.
- Full, incremental and differential backups (modern): full copies weekly, only changed data daily.
- Off-site copies and cloud storage protect against fire, theft and flood. Test that copies can actually be restored.
Security and privacy
- Access control (passwords, roles), encryption, audit trails.
- In Nigeria, personal data is protected by the Nigeria Data Protection Act 2023 (it replaced the NDPR of 2019; check for later rules from the Nigeria Data Protection Commission): collect only what is needed, keep it secure, delete it when no longer needed.
Exams usually ask
- Classify files by use with examples.
- Explain grandfather-father-son and dump-and-log recovery.
- Calculate a modulus 11 check digit.
Common mistake
Keeping the only backup in the same room as the computer. A fire or theft takes both; one copy must be off site.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
No reading links here yet
Our team adds free books, videos and practice for each topic, and opens every link before it goes up.