Unit Overview
Programming
CIE A-Level Computer ScienceΒ· 5 min read π n/a
1. Unit at a glance
This unit builds incrementally from basic programming building blocks up to full multi-paradigm programming concepts. You will start with core syntax and fundamentals, then gradually add more complex constructs for controlling program flow, reusing code, storing data persistently, and working with different programming approaches.
The learning path follows a logical sequence: each sub-topic builds on skills from the previous one, so we recommend working through them in order. By the end of the unit, you will have all the core programming knowledge needed for Papers 2 and 4 of your CIE 9618 exam.
We cover the following sub-topics in this unit:
Programming fundamentals
Covers variables, constants, data types, input/output and standard coding conventions.
β β± 10 min
Control flow structures
Covers selection statements and iteration loops to control the order of program execution.
β β β± 12 min
Procedures, functions and parameters
Learn to modularize code with reusable subroutines, parameter passing and return values.
β β β β± 15 min
File handling
Implement reading and writing data to text and binary files for persistent data storage.
β β β β± 10 min
Object-oriented programming concepts
Understand core OOP principles including classes, objects, encapsulation, inheritance and polymorphism.
β β β β β± 18 min
Declarative programming concepts
Compare declarative programming approaches to imperative paradigms, and learn core declarative principles.
β β β β β± 12 min
2. Common Pitfalls
Wrong move:
Confusing pass by value and pass by reference
Why:
This leads to unexpected changes to variable values that break program logic and cost exam marks
Correct move:
Always explicitly confirm which parameter passing method is required, and test changes to input values
Wrong move:
Forgetting to close files after read/write operations
Why:
This causes resource leaks and can lead to corrupted file data in running programs
Correct move:
Use structured handling patterns to guarantee files are closed after all operations complete
Wrong move:
Mixing up core characteristics of different programming paradigms
Why:
CIE 9618 regularly asks comparison questions, so mixing features leads to lost marks
Correct move:
Maintain a comparison table of key features for each paradigm for quick revision reference
3. Quick Reference Cheatsheet
Concept | Key Description |
|---|---|
Variable | Named memory location that stores data of a specified type, can be modified after declaration |
Pass by Value | A copy of the parameter value is passed to the subroutine; the original value remains unchanged |
Pass by Reference | A memory address reference of the parameter is passed; the original value can be modified |
Encapsulation | OOP principle that binds data and methods together, restricting access to internal implementation details |
Inheritance | OOP principle where a new class inherits attributes and methods from an existing parent class |
Declarative Programming | Paradigm where you describe what result you want, not step-by-step how to achieve it |
What's Next
To start this unit, begin with the first sub-topic on programming fundamentals, then work through each sub-topic in order to build your skills incrementally. Once you complete all sub-topics in this unit, you can move on to the next unit covering software development.
