

IB Computer Science · Theme A
Theme A of the IB Computer Science course, written as an interactive book. Read it like a textbook, then pull the levers: step a CPU through its cycle, watch a cache miss, build a circuit, schedule processes, break a network link and watch the packets find another way, run real SQL on a database. Every section ends with exam practice, and every chapter with a test.
Written by GeorgeTheTutor mentors. Free, no sign-up; your progress is saved in this browser only. Not affiliated with or endorsed by the International Baccalaureate Organization.
IB Computer Science
Concepts of
Computer Science
A1.1 – A3.4 · Interactive
Theme A1
How a computer works, from the CPU to the operating system.
Chapter A1.1
What is inside a computer, and how it runs a program: the CPU and GPU, memory, storage, compression and the cloud.
Chapter A1.2
How everything becomes binary: numbers, text, pictures and sound, and the logic gates that compute with it.
Chapter A1.3
The software that runs the hardware: what an operating system does, how it shares out the CPU and memory, and how control systems use sensors and feedback to run the world around us.
One question from every section, then all three structured questions.
Theme A2
How computers talk to each other: devices, protocols, addresses, packets and keeping it all secure.
Chapter A2.1
What a network is for, the services and devices that make one, and the protocols and layers that let devices understand each other.
Chapter A2.2
How networks are laid out and divided: topologies, servers, client-server against peer-to-peer, and segmentation.
Chapter A2.3
How data finds its way: IP addresses, cables and radio, packets, and the routers that choose each hop.
Chapter A2.4
How networks are attacked and how they defend themselves: firewalls, common threats and countermeasures, encryption and certificates.
One question from every section, then all four structured questions.
Theme A3
How data is stored, designed, queried and kept correct: tables and keys, normalisation, SQL, transactions and the databases built for scale.
Chapter A3.1
Why data lives in linked tables instead of one big one, and what keys, relationships and integrity rules do.
Chapter A3.1 testChapter A3.2
From blueprint to tables: schemas, ERDs, data types, keys and constraints, and normalising messy data to third normal form.
Chapter A3.3
Talking to a database in SQL: defining, querying and changing data, calculating, views, and transactions that keep it correct.
Chapter A3.4
When one relational database is not enough: NoSQL, warehouses, OLAP and data mining, and databases spread over many sites.
One question from every section, then all four structured questions.
Theme A4
How computers learn from data: the ideas behind prediction, the main methods, how a model is trained and tested, and the ethics of letting software decide.
Chapter A4.1
What machine learning is, the five main kinds, and the hardware that runs it, from a student laptop to a chip inside a phone.
Chapter A4.1 testChapter A4.2
Models learn from data, so the data comes first: cleaning it, choosing which features to keep, and cutting down how many there are.
Chapter A4.3
The main techniques at work: predicting numbers and categories, grouping unlabelled data, finding rules, learning from rewards, evolving answers, and neural networks. Then how to judge and choose between them.
Chapter A4.4
Machine learning decides things about real people. Bias, privacy, accountability and the wider effects of technology in daily life.
Chapter A4.4 testOne question from every section, then all four structured questions.
Theme B1
How to think about a problem before writing any code: specify it, break it down, find the patterns, leave out the detail, and design and trace an algorithm.
Chapter B1.1
How to turn a vague problem into one a computer can solve: write down exactly what it is, break it up, spot what repeats, leave out what does not matter, and trace an algorithm to check that it works.
Three questions from every section, then the structured question.
Theme B2
Writing programs: variables, data structures, the constructs that control a program, the standard algorithms and working with files.
Chapter B2.1
Variables, data types, stack-frame scope and lifetime, string parsing and slicing, exception handling, and systematic debugging with trace tables and breakpoints.
Chapter B2.2
Static arrays versus dynamic structures, 1D and 2D matrix traversal, LIFO stacks, and circular FIFO queues with modulo pointer wrapping.
Chapter B2.3
Sequence and program state mutation, single and multi-way selection with short-circuit Boolean evaluation, count and condition-controlled iteration, and modular subroutines with parameter passing.
Chapter B2.4
Time and space complexity under Big O notation, linear versus binary search, bubble, selection and insertion sorting, and recursive algorithms with call stack unwinding.
Chapter B2.5
Data persistence, sequential text and CSV file streams, read, write and append modes, exception-guarded file handles and buffer flushing.
Theme B3
Organising a program as objects: classes and their UML diagrams, encapsulation, inheritance, polymorphism and design patterns.
Chapter B3.1
The object-oriented paradigm, UML class design, static versus instance members, instantiation and constructors, and encapsulation with private attributes and accessor methods.
Chapter B3.2
Inheritance hierarchies, aggregation and composition, polymorphism with late dynamic dispatch, abstract classes and interface contracts, and software library reusability.
Theme B4
Higher level only: lists, trees, sets and hash tables as contracts, and how they are built from nodes and pointers.
Chapter B4.1
The ADT concept, singly and doubly linked lists, binary trees with recursive in-order, pre-order and post-order traversals, binary search trees, and graphs with BFS and DFS algorithms.