Eight lessons on systems, networks, databases, algorithms, programming, OOP and machine learning, with an HL ADT bridge.
First assessment 2027 foundations across Themes A and B. Python-like examples and original exercises; not a full Java/Python course, complete HL syllabus or current session case-study guide.
Basic algebra and no prior programming required.
Course outline
The 2027 course and computational thinking
Turn a real problem into a precise computational plan.
Data representation and computer fundamentals
Connect binary values, memory and processor actions.
Networks and reliable communication
Distinguish addressing, routing and protection.
Databases, keys and structured queries
Design records that support consistent relationships.
Algorithms, tracing and complexity
Trace a procedure and compare its scaling.
Programming, functions and testing
Define inputs, outputs and boundary tests.
Object-oriented design and abstract data types (HL bridge)
Separate an interface from its implementation.
Machine learning, ethics and the computational solution
Evaluate model evidence and a real solution responsibly.
Sources and curriculum note
First assessment 2027; checked October 2026. Assessment percentages omitted because the official update contains a conflicting SL summary.
Read every lesson below. The interactive reader above contains the same explanations, with visual tools and quizzes.
1. The 2027 course and computational thinking
Learning goal: Turn a real problem into a precise computational plan.
This course targets first assessment 2027. Theme A covers computer fundamentals, networks, databases and machine learning. Theme B covers computational thinking, programming and object-oriented programming, with abstract data types at HL. Java or Python can be used for programming questions.
Decomposition breaks a problem into manageable parts. Abstraction retains what matters for the task and omits irrelevant detail. An algorithm is a finite, precise sequence for solving a class of problems. A computational solution still needs requirements, testing and evaluation against user needs.
The new course includes a case study and a computational-solution IA. This guide uses Python-like examples but does not execute learner code or cover every Java/Python syntax feature. It avoids assessment percentages because the official update prose and its table disagree for SL. Your current school brief controls detailed requirements.
Worked example
A library needs to find overdue loans.
Define the due-date rule and required data.
Separate storage, date comparison and reporting.
Test boundaries such as a loan due today.
Practice problem and solution
What term means breaking a problem into smaller parts?
Decomposition creates manageable subproblems.
Mental model: A solution begins with a testable problem.
Common trap: Using the course ending in 2026 as the 2027 assessment outline.
2. Data representation and computer fundamentals
Learning goal: Connect binary values, memory and processor actions.
A bit represents one of two states. Eight bits form a byte. An unsigned n-bit integer has 2^n possible values, from zero to 2^n - 1. Signed formats allocate patterns differently; the maximum depends on the representation. More bits can increase range or precision but require storage.
Text, images and sound are encoded using agreed formats. A code point is not necessarily one byte. Uncompressed image storage depends on width, height and bits per pixel; compression can change file size. A representation is not the same as the meaning a person assigns to it.
A processor repeatedly fetches instructions, decodes them and executes operations using registers and memory. RAM holds active data; persistent storage retains it when power is off. Performance depends on workload and several factors, not clock speed alone.
Worked example
An unsigned 8-bit integer is used. Find its maximum.
There are 2^8 = 256 patterns.
Counting starts at zero.
Maximum = 255.
Practice problem and solution
What is the maximum unsigned value with 4 bits?
2^4 - 1 = 15.
Mental model: Representation sets range and interpretation.
Common trap: Confusing number of patterns with maximum value.
3. Networks and reliable communication
Learning goal: Distinguish addressing, routing and protection.
Networks connect devices using agreed protocols. Data is often divided into packets, each carrying information needed for delivery. Routing chooses paths through networks. IP addresses identify network endpoints; DNS maps names to addressing information. These roles should not be collapsed into one service.
Bandwidth is a capacity measure, while latency is delay. A high-capacity connection can still have high latency. Transmission time depends on data size and rate under simplified assumptions; congestion, overhead and retransmission add effects.
Encryption protects confidentiality when implemented appropriately. Authentication checks identity and integrity detects unauthorized changes. Encryption alone does not guarantee a trustworthy endpoint, safe content or authorization. Evaluate network design by reliability, performance, security and user constraints.
Worked example
A 40-megabit file uses a 5-megabit-per-second link. Ignore overhead.
Time = size / rate.
40 / 5 = 8 seconds.
Actual time can be longer.
Practice problem and solution
Ignoring overhead, send 60 megabits at 10 megabits per second. How many seconds?
60 / 10 = 6.
Mental model: Separate speed, delay and security roles.
Common trap: Using megabytes as megabits without converting.
4. Databases, keys and structured queries
Learning goal: Design records that support consistent relationships.
A relational database organizes records in tables with defined attributes. A primary key uniquely identifies a record. A foreign key connects a record to a key in another table. These relationships allow separate facts to be maintained without duplicating everything in one wide table.
Redundancy can create update anomalies: changing one copy while leaving another inconsistent. Normalization organizes dependencies to reduce such problems, though practical design also considers performance. A key should be stable and unique; a person's name often is not.
A query retrieves specified data. For example, SELECT title FROM Book WHERE year > 2020 requests selected columns and matching rows. SQL result order is not guaranteed without ORDER BY. Parameterized queries separate values from command structure and reduce injection risk; permissions and backups remain necessary.
Worked example
A loan table repeats book title and author for every loan.
A title correction requires many changes.
Separate books and reference their IDs from loans.
This reduces inconsistent copies.
Practice problem and solution
What key refers to a record in another table?
A foreign key represents the reference.
Mental model: Model relationships and dependencies.
Common trap: Assuming query results are ordered without ORDER BY.
5. Algorithms, tracing and complexity
Learning goal: Trace a procedure and compare its scaling.
Programs combine sequence, selection and iteration. Trace a loop by recording state before and after each iteration. An accumulator must be initialized and updated correctly. Off-by-one errors arise when boundaries include too many or too few values.
Linear search checks items in turn and works without sorted input. Binary search repeatedly halves a sorted search interval. Sorting is a precondition, not an optional detail. Complexity describes growth as input size increases; O(n) and O(log n) are not exact running times.
Correctness and efficiency are separate. A fast procedure that misses an endpoint is wrong. Compare best, average or worst cases explicitly, and distinguish time from memory use. Small real inputs can be dominated by implementation overhead rather than asymptotic behavior.
Worked example
Trace total = 0; for x in [2, 4, 6]: total = total + x.
Start total at zero.
After iterations it is 2, then 6, then 12.
The final total is 12.
Practice problem and solution
Linear search fails to find a target in a list of 20 items. In the simple item-by-item model, how many comparisons?
Every item is checked once.
Mental model: Trace boundaries before judging speed.
Common trap: Using binary search on unsorted input.
6. Programming, functions and testing
Learning goal: Define inputs, outputs and boundary tests.
A function encapsulates a task with a defined interface. Parameters provide input; a return value communicates output. Printing a value is not the same as returning it. Local variables can reduce unintended coupling through shared state.
Validation checks whether input meets rules; it does not prove that a valid-looking value is true. Testing compares actual and expected behavior for normal, boundary and invalid cases. A finite set of passing tests supports confidence but does not prove all possible cases correct.
Use a clear specification. For a rule accepting ages 16 through 19 inclusive, test 15, 16, 19 and 20 as well as a nonnumeric value. Document reproducible failures and revise the implementation. Do not invent user feedback or tests that were never performed for an IA.
Worked example
A function accepts age 16 to 19 inclusive. Plan boundaries.
15 should fail and 16 should pass.
19 should pass and 20 should fail.
Test nonnumeric input too.
Practice problem and solution
For inclusive ages 16 through 19, should age 19 pass or fail?
The upper bound is included.
Mental model: Tests need specified expected results.
Common trap: Calling a few passing tests proof of universal correctness.
7. Object-oriented design and abstract data types (HL bridge)
Learning goal: Separate an interface from its implementation.
A class defines a kind of object; an object is an instance with state and behavior. Encapsulation controls access through defined operations, supporting invariants such as a balance that changes only through validated transactions. It does not mean data is automatically secure against every attack.
Inheritance models a justified is-a relationship, while composition combines objects for has-a relationships. Design should follow requirements rather than force every problem into a deep hierarchy. Overriding changes inherited behavior under a consistent interface.
An abstract data type specifies operations and behavior independently of implementation. A stack is last-in-first-out and a queue is first-in-first-out. HL extends abstract data types. Choosing one depends on required access behavior, memory and performance, not its fashionable name.
Worked example
Push A, then B, then C onto an empty stack. Pop once.
C was added last.
The pop returns C.
A and B remain in that order.
Practice problem and solution
Enqueue A, B and C in that order. Which is removed first?
A arrived first, so FIFO removes A.
Mental model: Choose structures by behavior.
Common trap: Confusing LIFO with FIFO.
8. Machine learning, ethics and the computational solution
Learning goal: Evaluate model evidence and a real solution responsibly.
Supervised learning uses labeled examples; unsupervised learning searches for structure without the same target labels. Training changes a model using data, while testing estimates performance on held-out data. Leakage occurs when information unavailable at prediction time enters training or evaluation.
Accuracy can hide failures when classes are imbalanced. A classifier labeling every rare fraud as normal can appear accurate while missing all fraud. Evaluate errors by their costs, affected groups and context. Privacy, consent, bias and accountability remain responsibilities of system design.
The 2027 IA focuses on a computational solution to a chosen real problem using computational thinking and programming. Establish requirements, justify design, implement, test and evaluate against needs. Keep development and user evidence genuine. The emerging-technology case study is session-specific; this guide does not invent its current content.
Worked example
Five of 100 transactions are fraudulent. A model predicts all normal.
It labels 95 normal cases correctly.
Accuracy is 95%, but fraud recall is zero.
Accuracy alone hides the failure.
Practice problem and solution
Out of 100 cases, eight are positive. A model predicts all negative. What is accuracy percent?
92 negatives are correct out of 100. Recall of positives is zero.
Mental model: Evaluate the intended task, not one flattering metric.
Common trap: Inventing tests, users or session case-study content.