International Baccalaureate · IB Diploma
Computer Science · SL
Papers, samples and curriculum documents for this course.
Handouts, exercise sheets and slides
Some documents come from a related course and keep that course’s name and topic titles. Check your own board’s specification for what to cover, which tier to take and what the exam asks.
Handouts (9)
Exercise sheets (20)
- 1.1 Computer hardware
- 1.2 Data representation
- 1.3 Logic gates and truth tables
- 1.4 Operating systems
- 2.1 Networks
- 2.2 Protocols and IP addressing
- 2.3 Network security
- 3.1 Database design
- 3.2 SQL
- 4.1 Machine learning
- 5.1 Computational thinking
- 5.2 Flowcharts and trace tables
- 6.1 Programming fundamentals
- 6.2 Data structures
- 6.3 Searching and sorting
- 6.4 Programming constructs, functions and file processing
- 7.1 Classes and objects
- 7.2 Encapsulation and UML class diagrams
- 8.1 Case study skills
- 9.1 Computational solution skills
Presentation slides (9)
Exercise walk-through slides (20)
- 1.1 Computer hardware · Walk-through
- 1.2 Data representation · Walk-through
- 1.3 Logic gates and truth tables · Walk-through
- 1.4 Operating systems · Walk-through
- 2.1 Networks · Walk-through
- 2.2 Protocols and IP addressing · Walk-through
- 2.3 Network security · Walk-through
- 3.1 Database design · Walk-through
- 3.2 SQL · Walk-through
- 4.1 Machine learning · Walk-through
- 5.1 Computational thinking · Walk-through
- 5.2 Flowcharts and trace tables · Walk-through
- 6.1 Programming fundamentals · Walk-through
- 6.2 Data structures · Walk-through
- 6.3 Searching and sorting · Walk-through
- 6.4 Programming constructs, functions and file processing · Walk-through
- 7.1 Classes and objects · Walk-through
- 7.2 Encapsulation and UML class diagrams · Walk-through
- 8.1 Case study skills · Walk-through
- 9.1 Computational solution skills · Walk-through
Handouts · A-Level Computer Science (20)
- 1. Information representation
- 2. Communication
- 3. Hardware
- 4. Processor Fundamentals
- 5. System Software
- 6. Security, privacy and data integrity
- 7. Ethics and Ownership
- 8. Databases
- 9. Algorithm Design and Problem-solving
- 10. Data Types and Structures
- 11. Programming
- 12. Software Development
- 13. Data Representation
- 14. Communication and internet technologies
- 15. Hardware and Virtual Machines
- 16. System Software
- 17. Security
- 18. Artificial Intelligence (AI)
- 19. Computational thinking and Problem-solving
- 20. Further Programming
Exercise sheets · A-Level Computer Science (88)
- 1.1 Data representation
- 1.1.2 Binary prefixes and subtraction
- 1.2 Multimedia
- 1.2.1 Image and sound files
- 1.3 Compression
- 2.1 Networks
- 2.1.1 Network models and topologies
- 2.1.2 Network media and hardware
- 2.1.3 URLs, DNS and IP addresses
- 3.1 Computer components
- 3.1.1 RAM and ROM
- 3.1.2 Secondary storage
- 3.1.3 Input and output devices
- 3.1.4 Embedded and control systems
- 3.2 Logic gates
- 3.2.1 From circuit to truth table
- 3.2.2 Building logic circuits
- 4.1 CPU architecture
- 4.1.1 Registers and interrupts
- 4.2 Assembly language
- 4.3 Bit manipulation
- 4.3.1 Arithmetic and cyclic shifts
- 5.1 Operating systems
- 5.1.1 Utility software
- 5.1.2 Program libraries
- 5.2 Language translators
- 5.2.1 The IDE
- 6.1 Data security
- 6.2 Data integrity
- 7.1 Ethics and ownership
- 7.1.1 Software licences and AI
- 8.1 Database tables and keys
- 8.1.1 E-R diagrams
- 8.1.2 Normalisation
- 8.2 Database management systems
- 8.3 SQL
- 8.3.1 SQL joins and GROUP BY
- 9.1 Computational thinking
- 9.1.1 Abstraction and decomposition
- 9.2 Writing algorithms
- 9.2.1 Logic statements
- 9.2.2 Flowcharts
- 9.2.3 Stepwise refinement
- 10.1 Data types and records
- 10.2 Arrays
- 10.2.1 Bubble sort
- 10.2.2 Arrays: exam practice
- 10.3 Files
- 10.4 Abstract data types
- 10.4.1 Circular queues and linked lists
- 11.1 Programming basics
- 11.1.1 Operators
- 11.1.2 Built-in functions
- 11.2 IF statements
- 11.2.1 CASE statements
- 11.2.2 FOR loops
- 11.2.3 WHILE and REPEAT loops
- 11.2.4 Trace tables
- 11.3 Procedures
- 11.3.1 Functions
- 11.3.2 Parameters and scope
- 11.3.3 Writing modules
- 12.1 Development life cycle
- 12.2 Structure charts
- 12.2.1 State-transition diagrams
- 12.3 Testing and maintenance
- 12.3.1 Test plans
- 13.1 User-defined types
- 13.1.1 Designing your own types
- 13.2 File organisation
- 13.3 Floating-point numbers
- 13.3.1 Precision, range and overflow
- 14.1 Protocols
- 14.2 Circuit and packet switching
- 15.1 Processor architecture
- 15.2 Boolean algebra
- 15.2.1 Adders, flip-flops and K-maps
- 16.1 Scheduling and memory management
- 16.2 Translation software
- 16.2.1 BNF and RPN
- 17.1 Encryption and certificates
- 18.1 Artificial intelligence
- 19.1 Searching and sorting
- 19.1.1 ADT algorithms and Big O
- 19.2 Recursion
- 20.1 Programming paradigms
- 20.1.1 Addressing modes and declarative programming
- 20.2 Files and exceptions
Presentation slides · A-Level Computer Science (20)
- 1. Information representation
- 2. Communication
- 3. Hardware
- 4. Processor Fundamentals
- 5. System Software
- 6. Security, privacy and data integrity
- 7. Ethics and Ownership
- 8. Databases
- 9. Algorithm Design and Problem-solving
- 10. Data Types and Structures
- 11. Programming
- 12. Software Development
- 13. Data Representation
- 14. Communication and internet technologies
- 15. Hardware and Virtual Machines
- 16. System Software
- 17. Security
- 18. Artificial Intelligence (AI)
- 19. Computational thinking and Problem-solving
- 20. Further Programming
Exercise walk-through slides · A-Level Computer Science (186)
- 1 Information representation (whole unit) · Past-paper walk-through
- 1.1 Data Representation · Walk-through
- 1.1 Data Representation · Past-paper walk-through
- 1.1.1 Data Representation · Past-paper walk-through
- 1.1.2 Binary prefixes and subtraction · Walk-through
- 1.1.2 Binary prefixes and subtraction · Past-paper walk-through
- 1.2 Multimedia · Walk-through
- 1.2 Multimedia · Past-paper walk-through
- 1.2.1 Image and sound files · Walk-through
- 1.2.1 Image and sound files · Past-paper walk-through
- 1.3 Compression · Walk-through
- 1.3 Compression · Past-paper walk-through
- 1.3.1 Compression · Past-paper walk-through
- 2 Communication (whole unit) · Past-paper walk-through
- 2.1 Networks including the internet · Walk-through
- 2.1 Networks including the internet · Past-paper walk-through
- 2.1.1 Network models and topologies · Walk-through
- 2.1.1 Network models and topologies · Past-paper walk-through
- 2.1.2 Network media and hardware · Walk-through
- 2.1.3 URLs, DNS and IP addresses · Walk-through
- 2.1.3 URLs, DNS and IP addresses · Past-paper walk-through
- 3 Hardware (whole unit) · Past-paper walk-through
- 3.1 Computers and their components · Walk-through
- 3.1 Computers and their components · Past-paper walk-through
- 3.1.1 RAM and ROM · Walk-through
- 3.1.1 RAM and ROM · Past-paper walk-through
- 3.1.2 Secondary storage · Walk-through
- 3.1.2 Secondary storage · Past-paper walk-through
- 3.1.3 Input and output devices · Walk-through
- 3.1.3 Input and output devices · Past-paper walk-through
- 3.1.4 Embedded and control systems · Walk-through
- 3.1.4 Embedded and control systems · Past-paper walk-through
- 3.2 Logic Gates and Logic Circuits · Walk-through
- 3.2 Logic Gates and Logic Circuits · Past-paper walk-through
- 3.2.1 From circuit to truth table · Walk-through
- 3.2.1 From circuit to truth table · Past-paper walk-through
- 3.2.2 Building logic circuits · Walk-through
- 3.2.2 Building logic circuits · Past-paper walk-through
- 4 Processor fundamentals (whole unit) · Past-paper walk-through
- 4.1 Central Processing Unit (CPU) Architecture · Walk-through
- 4.1 Central Processing Unit (CPU) Architecture · Past-paper walk-through
- 4.1.1 Registers and interrupts · Walk-through
- 4.1.1 Registers and interrupts · Past-paper walk-through
- 4.2 Assembly Language · Walk-through
- 4.2 Assembly Language · Past-paper walk-through
- 4.3 Bit manipulation · Walk-through
- 4.3 Bit manipulation · Past-paper walk-through
- 4.3.1 Arithmetic and cyclic shifts · Walk-through
- 5 System software (whole unit) · Past-paper walk-through
- 5.1 Operating Systems · Walk-through
- 5.1 Operating Systems · Past-paper walk-through
- 5.1.1 Utility software · Walk-through
- 5.1.1 Utility software · Past-paper walk-through
- 5.1.2 Program libraries · Walk-through
- 5.1.2 Program libraries · Past-paper walk-through
- 5.2 Language Translators · Walk-through
- 5.2 Language Translators · Past-paper walk-through
- 5.2.1 The IDE · Walk-through
- 5.2.1 The IDE · Past-paper walk-through
- 6 Security, privacy and data integrity (whole unit) · Past-paper walk-through
- 6.1 Data Security · Walk-through
- 6.1 Data Security · Past-paper walk-through
- 6.2 Data Integrity · Walk-through
- 6.2 Data Integrity · Past-paper walk-through
- 7 Ethics and ownership (whole unit) · Past-paper walk-through
- 7.1 Ethics and Ownership · Walk-through
- 7.1 Ethics and Ownership · Past-paper walk-through
- 7.1.1 Software licences and AI · Walk-through
- 7.1.1 Software licences and AI · Past-paper walk-through
- 8 Databases (whole unit) · Past-paper walk-through
- 8.1 Database Concepts · Walk-through
- 8.1 Database Concepts · Past-paper walk-through
- 8.1.1 E-R diagrams · Walk-through
- 8.1.1 E-R diagrams · Past-paper walk-through
- 8.1.2 Normalisation · Walk-through
- 8.1.2 Normalisation · Past-paper walk-through
- 8.2 Database Management Systems (DBMS) · Walk-through
- 8.2 Database Management Systems (DBMS) · Past-paper walk-through
- 8.3 Data Definition Language (DDL) and Data Manipulation Language (DML) · Walk-through
- 8.3 Data Definition Language (DDL) and Data Manipulation Language (DML) · Past-paper walk-through
- 8.3.1 SQL joins and GROUP BY · Walk-through
- 8.3.1 SQL joins and GROUP BY · Past-paper walk-through
- 9 Algorithm design and problem-solving (whole unit) · Past-paper walk-through
- 9.1 Computational Thinking Skills · Walk-through
- 9.1 Computational Thinking Skills · Past-paper walk-through
- 9.1.1 Abstraction and decomposition · Walk-through
- 9.1.1 Abstraction and decomposition · Past-paper walk-through
- 9.2 Algorithms · Walk-through
- 9.2 Algorithms · Past-paper walk-through
- 9.2.1 Logic statements · Walk-through
- 9.2.1 Logic statements · Past-paper walk-through
- 9.2.2 Flowcharts · Walk-through
- 9.2.2 Flowcharts · Past-paper walk-through
- 9.2.3 Stepwise refinement · Walk-through
- 9.2.3 Stepwise refinement · Past-paper walk-through
- 10 Data types and structures (whole unit) · Past-paper walk-through
- 10.1 Data Types and Records · Walk-through
- 10.1 Data Types and Records · Past-paper walk-through
- 10.2 Arrays · Walk-through
- 10.2 Arrays · Past-paper walk-through
- 10.2.1 Bubble sort · Walk-through
- 10.2.1 Bubble sort · Past-paper walk-through
- 10.2.2 Arrays: exam practice · Walk-through
- 10.3 Files · Walk-through
- 10.3 Files · Past-paper walk-through
- 10.4 Introduction to Abstract Data Types (ADT) · Walk-through
- 10.4 Introduction to Abstract Data Types (ADT) · Past-paper walk-through
- 10.4.1 Circular queues and linked lists · Walk-through
- 10.4.1 Circular queues and linked lists · Past-paper walk-through
- 11 Programming (whole unit) · Past-paper walk-through
- 11.1 Programming Basics · Walk-through
- 11.1 Programming Basics · Past-paper walk-through
- 11.1.1 Operators · Walk-through
- 11.1.2 Built-in functions · Walk-through
- 11.1.2 Built-in functions · Past-paper walk-through
- 11.2 Constructs · Walk-through
- 11.2 Constructs · Past-paper walk-through
- 11.2.1 CASE statements · Walk-through
- 11.2.1 CASE statements · Past-paper walk-through
- 11.2.2 FOR loops · Walk-through
- 11.2.3 WHILE and REPEAT loops · Walk-through
- 11.2.3 WHILE and REPEAT loops · Past-paper walk-through
- 11.2.4 Trace tables · Walk-through
- 11.2.4 Trace tables · Past-paper walk-through
- 11.3 Structured Programming · Walk-through
- 11.3 Structured Programming · Past-paper walk-through
- 11.3.1 Functions · Walk-through
- 11.3.1 Functions · Past-paper walk-through
- 11.3.2 Parameters and scope · Walk-through
- 11.3.2 Parameters and scope · Past-paper walk-through
- 11.3.3 Writing modules · Walk-through
- 11.3.3 Writing modules · Past-paper walk-through
- 12 Software development (whole unit) · Past-paper walk-through
- 12.1 Program Development Life cycle · Walk-through
- 12.1 Program Development Life cycle · Past-paper walk-through
- 12.2 Program Design · Walk-through
- 12.2 Program Design · Past-paper walk-through
- 12.2.1 State-transition diagrams · Walk-through
- 12.2.1 State-transition diagrams · Past-paper walk-through
- 12.3 Program Testing and Maintenance · Walk-through
- 12.3 Program Testing and Maintenance · Past-paper walk-through
- 12.3.1 Test plans · Walk-through
- 12.3.1 Test plans · Past-paper walk-through
- 13 Data Representation (whole unit) · Past-paper walk-through
- 13.1 User-defined data types · Walk-through
- 13.1 User-defined data types · Past-paper walk-through
- 13.1.1 Designing your own types · Walk-through
- 13.2 File organisation and access · Walk-through
- 13.2 File organisation and access · Past-paper walk-through
- 13.3 Floating-point numbers, representation and manipulation · Walk-through
- 13.3 Floating-point numbers, representation and manipulation · Past-paper walk-through
- 13.3.1 Precision, range and overflow · Walk-through
- 14 Communication and internet technologies (whole unit) · Past-paper walk-through
- 14.1 Protocols · Walk-through
- 14.1 Protocols · Past-paper walk-through
- 14.2 Circuit switching, packet switching · Walk-through
- 14.2 Circuit switching, packet switching · Past-paper walk-through
- 15 Hardware and Virtual Machines (whole unit) · Past-paper walk-through
- 15.1 Processors, Parallel Processing and Virtual Machines · Walk-through
- 15.1 Processors, Parallel Processing and Virtual Machines · Past-paper walk-through
- 15.2 Boolean Algebra and Logic Circuits · Walk-through
- 15.2 Boolean Algebra and Logic Circuits · Past-paper walk-through
- 15.2.1 Adders, flip-flops and K-maps · Walk-through
- 16 System Software (whole unit) · Past-paper walk-through
- 16.1 Purposes of an Operating System (OS) · Walk-through
- 16.1 Purposes of an Operating System (OS) · Past-paper walk-through
- 16.2 Translation Software · Walk-through
- 16.2 Translation Software · Past-paper walk-through
- 16.2.1 BNF and RPN · Walk-through
- 17 Security (whole unit) · Past-paper walk-through
- 17.1 Encryption, Encryption Protocols and Digital Certificates · Walk-through
- 17.1 Encryption, Encryption Protocols and Digital Certificates · Past-paper walk-through
- 18.1 Artificial Intelligence (AI) · Walk-through
- 18.1 Artificial Intelligence (AI) · Past-paper walk-through
- 19 Computational thinking and Problem-solving (whole unit) · Past-paper walk-through
- 19.1 Algorithms · Walk-through
- 19.1 Algorithms · Past-paper walk-through
- 19.1.1 ADT algorithms and Big O · Walk-through
- 19.2 Recursion · Walk-through
- 19.2 Recursion · Past-paper walk-through
- 20 Further Programming (whole unit) · Past-paper walk-through
- 20.1 Programming Paradigms · Walk-through
- 20.1 Programming Paradigms · Past-paper walk-through
- 20.1.1 Addressing modes and declarative programming · Walk-through
- 20.2 File Processing and Exception Handling · Walk-through
- 20.2 File Processing and Exception Handling · Past-paper walk-through
Course units and learning goals
These lessons teach selected course objectives. Check the remaining coverage gaps; the material is not a complete preparation programme.
A.1 · Computer fundamentals
- Checking an asserted identity.
- Separate authentication from authorization. Authentication checks identity; authorization determines permitted actions. A threat model connects a valuable asset, a possible attack and an appropriate control.
- Use a fictitious school dataset to define users and permissions. Draw data flows, compare validation and verification, and specify tests for normal, boundary and invalid input. Do not use real credentials or student records in exercises.
- authentication
- Checking an asserted identity
- authorization
- Determining permitted actions
A.2 · Networks
- Achieved rate of useful data transfer.
- Transmission time depends on data size and rate. Total delay may also include propagation, processing and queueing. Encryption protects content under its assumptions but does not remove congestion or every metadata exposure.
- Trace a message route using a documented local model. Record payload size, units and measured time. Use school-approved networks and synthetic messages; do not scan or intercept another user traffic.
- throughput
- Achieved rate of useful data transfer
- latency
- Delay experienced in communication
A.3 · Databases
- Attribute set uniquely identifying a table row.
- A join combines rows according to a specified condition. The result count depends on relationship cardinality and filters. A foreign key constraint enforces a relationship rule; it does not automatically encrypt personal data.
- Design a small synthetic user-order dataset with no real personal information. Declare keys, test duplicate and missing-reference inserts, then check a query result against a hand-worked expected table.
- primary key
- Attribute set uniquely identifying a table row
- foreign key
- Attribute set referencing a key in another table
A.4 · Machine learning
- An attribute set uniquely identifying a record.
- A primary key uniquely identifies a record; a foreign key relates records. In prediction, leakage can expose information unavailable at the real decision time. Accuracy alone may hide an unbalanced target distribution.
- Use fictional booking records to identify entities, attributes and relationships. For a learning exercise, use a public non-sensitive dataset, separate training and test data, and describe who may be affected by errors. The current 2027 CS objective scope awaits the acquired guide.
- primary key
- An attribute set uniquely identifying a record
- data leakage
- Use of information unavailable at the intended prediction time
B.1 · Computational thinking
- A finite procedure solving a stated task.
- State input conditions and expected outputs. Use boundary cases, empty collections where allowed, duplicates and invalid values. Distinguish a wrong algorithm from a wrong implementation or an incomplete requirement.
- Trace a search over a small fictional sorted list. State the indexing convention. For binary search, update bounds so the remaining interval shrinks and reject unsorted input unless sorting is part of the task.
- algorithm
- A finite procedure solving a stated task
- boundary test
- A test at a limit of the allowed input range
B.2 · Programming
- A finite procedure solving a stated task.
- State input conditions and expected outputs. Use boundary cases, empty collections where allowed, duplicates and invalid values. Distinguish a wrong algorithm from a wrong implementation or an incomplete requirement.
- Trace a search over a small fictional sorted list. State the indexing convention. For binary search, update bounds so the remaining interval shrinks and reject unsorted input unless sorting is part of the task.
- algorithm
- A finite procedure solving a stated task
- boundary test
- A test at a limit of the allowed input range
B.3 · Object-oriented programming
- Controlling access to state through an interface.
- A method call acts on a particular instance. State changes should satisfy preconditions and postconditions. Polymorphism lets code use a common interface with different implementations when the contract is respected.
- Implement a small synthetic account or inventory model. Test two independent instances, rejected invalid operations and boundary values. Keep the model away from real financial accounts and credentials.
- encapsulation
- Controlling access to state through an interface
- instance
- An individual object of a class
Case study · Case study
- Completed work per unit time under a stated workload.
- A recommendation should connect a requirement to a mechanism and an observable test. For example, a concurrency problem requires a strategy that prevents conflicting updates, plus tests demonstrating the invariant. A claim about faster response requires comparable workload measurements rather than only a complexity label. Evaluate alternatives under the same stated conditions.
- Use an original school-approved scenario and synthetic data. Build a matrix of claim, supporting scenario evidence, technical explanation, limitation and acceptance test. Mark missing facts explicitly and show how the recommendation would change if an assumption failed. This prepares case-based reasoning without reproducing an unavailable IB assessment case study or inventing its examination rubric.
- throughput
- Completed work per unit time under a stated workload
- acceptance test
- A test of whether a specified user requirement is met
IA · Computational solution
- A finite procedure solving a stated task.
- State input conditions and expected outputs. Use boundary cases, empty collections where allowed, duplicates and invalid values. Distinguish a wrong algorithm from a wrong implementation or an incomplete requirement.
- Trace a search over a small fictional sorted list. State the indexing convention. For binary search, update bounds so the remaining interval shrinks and reject unsorted input unless sorting is part of the task.
- algorithm
- A finite procedure solving a stated task
- boundary test
- A test at a limit of the allowed input range
Preparing for this qualification
- This ordering records the 2027 A/B structure separately from the 2014 course final assessment in 2026.
- Do not carry forward old Options A–D or the old assessment weights. A.4 machine learning and B.3 OOP are in the new public structure; B.4 is HL-only.
- Current paper marks, case-study assessment differences, approved language conventions and IA rubric remain blocked pending the current guide.
- The project is a school-supervised working computational solution with requirements, tests and user evaluation, never an invented written replacement.
Teaching coverage still needed
- 2027 exact objectives/rubrics not verified from an acquired guide. These original foundation cases do not establish full current-course parity.
Specifications and sample documents
Course materials
Course preparation
Documents are available. Board-specific notes, assessments and interactive past-paper practice are not yet available for every course.
Lessons →