Skip to content
Marlbridge

Revision Notes

Theme A – Concepts of Computer Science: Revision Notes

Recall notes on IB DP Computer Science Theme A, first assessment 2027: computer fundamentals, networks, databases with SQL queries, and machine learning.

Level
IB
Topic
Theme A – Concepts of computer science
Updated

Aligned to International Baccalaureate IB Diploma Programme Computer Science (DP Computer Science), First assessment 2027. Official subject brief .

Found an error? Report a correction.

Condensed for quick recall of Theme A – Concepts of computer science, which covers how computing systems actually work (SL: 38 hours; HL: 72 hours). The case study is listed separately, with its own hours at each level (see below). For the full two-theme syllabus map, use the IB DP Computer Science syllabus guide. Theme A’s Paper 1 questions also draw on the pre-released case study, so revising these four topics in isolation from the case study leaves a real gap close to the exam.

What Theme A covers

Theme A has four official sub-topics, all studied by both SL and HL students (unlike Theme B, where B.4 is HL only).

A.1 Computer fundamentals

  • The hardware layer: CPU components (control unit, ALU, registers), the fetch-execute cycle, and primary vs secondary storage.
  • How data of every type – number, text, image, sound – is ultimately represented as binary, and the basic units (bit, byte) used to measure it.
  • The role of the operating system in managing hardware resources and mediating between applications and the underlying machine.

A.2 Networks

  • Network fundamentals: clients, servers, and the distinction between a LAN and a WAN.
  • The function of network devices – gateways, hardware firewalls, modems, network interface cards, routers, switches and wireless access points – and how the devices map to the layers of the TCP/IP model (A2.1.3, SL and HL).
  • The network protocols used for transport and application: TCP, UDP, HTTP, HTTPS and DHCP (A2.1.4).
  • HL only (A2.1.5): the function of the TCP/IP model itself – the role of each of its application, transport, internet and network interface layers, and how they interact to ensure reliable data transmission over a network.
  • Data transmission concepts – packet switching, bandwidth, and common causes of transmission error – and why the internet’s architecture is described as decentralised.

A.3 Databases

  • Why structured data is organised into databases rather than flat files: reducing redundancy, preserving integrity, and controlling access.
  • The relational model – tables, records, fields, primary and foreign keys – and how relationships between tables are represented.
  • Database programming in SQL, required at both SL and HL: the difference between SQL’s data definition language (defining the structure of the database) and data manipulation language (working with the data it holds); constructing queries between two tables, including joins, relational operators, filtering, pattern matching and ordering (SELECT, DISTINCT, FROM, WHERE, BETWEEN, ORDER BY, GROUP BY, HAVING, ASC, DESC, JOIN, LIKE with the % wildcard, AND, OR, NOT – exact syntax can vary between database systems); and how SQL is used to update data in a database.
  • HL only (A3.3.4-A3.3.6): calculations with SQL’s aggregate functions on grouped data (AVERAGE, COUNT, MAX, MIN, SUM); virtual and materialized (snapshot) database views and what they offer (hiding data complexity, data consistency, independence, performance, query simplification, read-only or updatable data, security); and how transactions maintain data integrity – ACID (atomicity, consistency, isolation, durability) and the commands BEGIN TRANSACTION, COMMIT and ROLLBACK.
  • HL only (A3.4): alternative databases and data warehouses.

A.4 Machine learning

  • The distinction between traditional rule-based programming and machine learning, where a system derives its own rules from data.
  • Core concepts: training data, features, and the difference between supervised and unsupervised learning approaches.
  • Real-world applications of machine learning, and the ethical issues they raise – bias in training data, transparency of automated decisions, and the environmental cost of training large models – which the course treats as integral content, not an optional add-on.

Theme A vs Theme B, and why the split matters for revision

Theme A asks “how does a computing system work?”; Theme B (Computational thinking and problem-solving) asks “how do we use one to solve a problem?” Concretely, that means Theme A’s four topics are largely descriptive and conceptual – explaining architecture, protocols, data models and machine-learning principles – while Theme B is where programming, algorithm design and object-oriented programming live. Students sometimes over-invest revision time in Theme B because it feels more “practical”, but Paper 1 is worth an equal share of the external assessment and draws entirely from Theme A plus the case study, so under-revising A.1-A.4 leaves real marks on the table independently of programming ability.

An illustrative library example. A single flat table repeats each borrower’s surname and address on every loan row, and when McKay’s address is changed in one row only, the table holds two different addresses for McKay. The fix is two linked tables: Borrowers, with the primary key BorrowerID, and Loans, with BorrowerID as a foreign key pointing to the Borrowers table. Each address is stored once. A primary key identifies a record in its own table; a foreign key refers to a primary key in another table.
Splitting a flat file into related tables stores each address once and links rows with a primary and foreign key.

How it’s tested

Paper 1 is set on Theme A together with the pre-released case study, so A.1-A.4 content routinely appears embedded in case-study scenarios rather than as standalone recall questions. Programming-heavy content lives in Theme B, not Theme A, so Theme A questions are more conceptual: explaining how something works, evaluating a design choice, or applying a concept (e.g. normalisation, in A.3) to an unfamiliar scenario. The exception is A.3’s SQL content, where you must be able to construct queries between two tables.

Common exam pitfalls

  • Describing the fetch-execute cycle from memory as a fixed sequence without being able to explain what each stage actually does to data in the registers – examiners reward explanation of mechanism, not just naming the stages.
  • In A.3, confusing a primary key (uniquely identifies a record within its own table) with a foreign key (a field that references a primary key in a different table) – these are tested as a pair, and mixing them up is one of the most common Theme A errors.
  • Treating A.4 as purely conceptual and skipping the ethical dimension – the course syllabus brief explicitly frames “raising ethical issues” as one of the course’s defining characteristics, and Theme A extended-response questions can ask you to evaluate a machine-learning application on ethical as well as technical grounds.
  • Assuming LAN/WAN terminology from everyday use is precise enough for exam answers – define terms using the syllabus’s own vocabulary (client, server, protocol) rather than informal substitutes.

Self-test

  1. What is the difference between primary storage and secondary storage?
  2. Why is a relational database preferred over storing all data in a single flat file?
  3. Name two ethical issues machine learning applications can raise.
  4. What is the fetch-execute cycle, in outline?
  5. Tables Borrowers(BorrowerID, Surname) and Loans(LoanID, BorrowerID, BookTitle) are linked by BorrowerID. Write an SQL query listing each borrower’s surname and the titles of the books they have on loan, for surnames beginning with “Mc”, in alphabetical order of surname.

Answers: 1. Primary storage (e.g. RAM) is directly accessible to the CPU and is typically volatile and fast but limited in capacity; secondary storage (e.g. an SSD) is non-volatile, larger-capacity, but slower, and used to hold data and programs when not actively in use. 2. A relational database reduces data redundancy (data is stored once and referenced via keys rather than duplicated across records), preserves data integrity when records are updated, and allows structured, controlled access – a flat file duplicates and fragments related data with no way to enforce consistency between copies. 3. Any two of: bias in training data leading to unfair or discriminatory outputs, lack of transparency in how automated decisions are reached, and the environmental/energy cost of training large models. 4. The CPU fetches an instruction from memory, decodes what operation it specifies, and executes that operation (which may read or write data via the registers), before repeating the cycle for the next instruction. 5. SELECT Borrowers.Surname, Loans.BookTitle FROM Borrowers JOIN Loans ON Borrowers.BorrowerID = Loans.BorrowerID WHERE Borrowers.Surname LIKE 'Mc%' ORDER BY Borrowers.Surname ASC; – the JOIN links the tables through the foreign key, LIKE with the % wildcard filters by pattern, and ORDER BY sorts the result.

An illustrative query over two tables, Borrowers and Loans. Step 1, JOIN: each loan is matched to its borrower through BorrowerID, giving five rows. Step 2, WHERE with LIKE ’Mc%’: only the rows whose surname begins with Mc are kept, which are McKay twice and McDonald once. Step 3, ORDER BY DueDate ASC: the three kept rows are sorted with the earliest due date first, giving Tiny Gardens, Iron Roads and Sea Charts.
JOIN matches loans to borrowers, WHERE with LIKE keeps names beginning Mc, and ORDER BY sorts by due date.

Frequently asked questions

Is SQL required in IB DP Computer Science? Yes. Database programming in SQL is required at both SL and HL, including queries between two tables. Aggregate functions, views and transactions are HL only.

What is the difference between a primary key and a foreign key? A primary key uniquely identifies a record within its own table. A foreign key is a field that references a primary key in a different table, and mixing them up is a common error.

Is the TCP/IP model in IB Computer Science SL? Mapping network devices to the TCP/IP layers is SL and HL content, but the function of the TCP/IP model itself, including the role of each layer, is HL only.

What ethical issues does machine learning raise in IB Computer Science? The course treats ethics as integral content, including bias in training data, transparency of automated decisions and the environmental cost of training large models.

Official syllabus

International Baccalaureate Organization, Diploma Programme Subject Brief – Sciences: Computer science, first assessment 2027, © 2024.

Theme A asks how a computing system works and has four sub-topics: A.1 Computer fundamentals, A.2 Networks, A.3 Databases and A.4 Machine learning. Teaching hours: Theme A has 38 hours at SL and 72 at HL; the case study is a separate line with 15 hours at SL and 30 at HL. Paper 1 is set on Theme A together with the pre-released case study.
Theme A has four sub-topics and is assessed through Paper 1 with the pre-released case study.
A block diagram. The CPU contains a control unit, an ALU and registers, and runs the fetch-execute cycle, shown as a loop. Primary storage is joined to the CPU by a two-way arrow. Secondary storage is shown separately and contrasted with primary storage.
The CPU holds the control unit, ALU and registers and repeats the fetch-execute cycle; primary and secondary storage are distinct.
A three-layer stack. Applications sit at the top, hardware (the CPU, primary storage and secondary storage) at the bottom, and the operating system in the middle, joined to both by two-way arrows. The operating system manages hardware resources and mediates between applications and the machine.
The operating system manages hardware resources and mediates between applications and the machine.
The four layers of the TCP/IP model stacked from top to bottom: application, transport, internet and network interface, with two-way arrows between neighbouring layers showing that they interact to ensure reliable data transmission. Knowing the function of the layers is HL only. Beside the application layer sit the protocols HTTP, HTTPS and DHCP, and beside the transport layer sit TCP and UDP; knowing these protocols is required at SL and HL.
The four TCP/IP layers (layer roles are HL only) with the protocols named in the syllabus.
A flowchart for an HL-only topic. BEGIN TRANSACTION starts, then two statements run: A = A − 30 and B = B + 30. If everything succeeded the transaction is committed and the changes are kept, giving A = 70 and B = 80 from a start of A = 100 and B = 50 (illustrative numbers). If a statement failed the transaction is rolled back and the changes are undone, leaving A = 100 and B = 50. Transactions maintain data integrity through atomicity, consistency, isolation and durability, known as ACID.
A transaction either commits or rolls back; integrity rests on atomicity, consistency, isolation and durability.
Two rows compare traditional rule-based programming with machine learning. In traditional programming, rules written by a person and data go into a program, which produces answers. In machine learning, training data with features goes into a machine learning system, which derives its own rules. Supervised and unsupervised learning are the two kinds named. Below, three ethical issues are shown: bias in training data, transparency of automated decisions, and the environmental cost of training large models.
Machine learning derives its own rules from data; ethical issues are part of the topic.

Related resources

Get free revision emails (optional)

Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.

“International Baccalaureate” and “IB” are trademarks of the International Baccalaureate Organization. Marlbridge is not affiliated with or endorsed by the IB.