Computer Studies Revision Notes
Operating Systems, Language Translators, Database Management Systems (DBMS) & SQL
Compare compilers, interpreters, and assemblers, review core Operating System functions, master relational database keys and normalization (1NF–3NF), and write core SQL queries.
1. System Software, Operating Systems & Translators
System Software controls hardware and provides the platform on which Application Software (MS Word, Excel, browsers) runs. - Core Operating System (OS) Functions: Process/CPU scheduling (multitasking), RAM memory allocation, file and directory management, device driver coordination, security/user authentication, and providing a GUI (Graphical User Interface) or CLI (Command Line Interface). - Three Language Translators: 1. Assembler: Converts low-level Assembly Language mnemonics (ADD, MOV) directly into machine code. 2. Compiler: Translates an entire high-level source program (e.g., C, C++, Rust) into a standalone machine-code executable before execution. Runs very fast afterward and reports all syntax errors together. 3. Interpreter: Translates and executes high-level code line-by-line (e.g., Python, BASIC). Easier for debugging beginners, slower at runtime, and stops immediately at the first syntax error.
2. Computer File Organization & Backup Principles
Data hierarchy builds upward: Bit → Byte (Character) → Field (Column) → Record (Row) → File (Table) → Database. - Serial File Organization: Records stored chronologically in arrival order without sorting; slow to search. - Sequential File Organization: Records sorted by a key field (e.g., Candidate ID); efficient for batch payroll processing, slow for single random lookups. - Indexed Sequential: Maintains a separate index table pointing to disk blocks, supporting both fast random lookup and ordered batch scans. - Random (Direct) Access: Uses a hashing algorithm to jump straight to a record’s disk address—essential for real-time banking ATMs and airline booking.
3. Relational Databases (DBMS), Keys & Normalization
A Database Management System (DBMS) (e.g., PostgreSQL, MySQL, Oracle, MS Access) eliminates data redundancy and enforces data integrity across structured tables (relations) made of rows (tuples) and columns (attributes). - Primary Key: A field (or composite pair) that uniquely identifies every record in a table and can never be NULL or duplicated (e.g., Student_Reg_No). - Foreign Key: A field in one table that references the Primary Key of another table to link related entities and enforce referential integrity. - Candidate Key vs Composite Key: Candidate keys are all columns eligible to be the primary key; a composite key combines two or more columns when one alone is not unique. - Normalization (1NF → 3NF): - 1NF: Every cell holds a single atomic value (no repeating groups). - 2NF: In 1NF and every non-key attribute depends on the entire primary key (eliminates partial dependency). - 3NF: In 2NF and no non-key attribute depends on another non-key attribute (eliminates transitive dependency).
4. Essential SQL & Spreadsheet Formulas + Examiner Traps
- Core SQL Commands: - SELECT Name, Score FROM Students WHERE Score >= 70 ORDER BY Score DESC; (retrieves high scorers). - INSERT INTO Students VALUES (104, 'Amina', 84); (adds a record). - UPDATE Students SET Score = 88 WHERE ID = 104; (modifies a record). - DELETE FROM Students WHERE ID = 104; (removes a record). - Spreadsheet Mastery (Excel / Calc): Every formula begins with = (e.g., =SUM(B2:B10), =AVERAGE(C2:C10), =IF(D2>=50, "Pass", "Fail")). Absolute cell references (B2) stay locked when copied across cells, whereas relative references (B2) shift automatically. Examiner Trap: Never confuse a Primary Key with a Foreign Key: a Primary Key cannot repeat or be empty in its home table, whereas a Foreign Key can appear multiple times in a child table (e.g., one Class_ID linked to 40 different students).