IB Computer Science lessons

Theory is written in clear English: definitions and theorems are worded exactly as the exam words them, with a plain-English explanation alongside — so no term on exam day is new.

All IB Computer Science lessons (32)

System Fundamentals

This topic is the least technical but loses the most marks, because it is marked on reasoning with a mechanism rather than on remembering names. Four things decide the score. One, the cost of fixing an error rises exponentially across the stages — this sentence justifies every recommendation about analysis and prototyping. Two, the four requirements-gathering techniques, each with a systematic blind spot, so they must be cross-checked. Three, the four changeover methods and the three questions for choosing: the consequence of errors, the possibility of running in parallel, and whether there is a unit to pilot in. Four, the three kinds of test data with the rule that each boundary generates three values, together with the fundamental limit that testing proves the presence but not the absence of errors.

Computer Organization

This topic is marked on accuracy and on calculations with units stated. Four clusters decide the score. One, the fetch-decode-execute cycle must be described by the path the data takes through the program counter, address register, address bus, data bus and data register — not by the names of the steps. Two, an n-bit address bus can address 2 to the power of n cells, while the data bus determines bandwidth; confusing these two roles is the most common mistake. Three, two's complement with the highest bit carrying a negative weight, the procedure of inverting the bits and adding one, always verifying with the sum of weights, and the overflow rule of same sign giving opposite sign. Four, the truth tables of the five gates, remembered by structure, together with the two formulas for image file size and audio file size.

Networks

This topic is marked on mechanism and on trade-offs, not on remembering abbreviations. Four clusters decide the score. One, encapsulation and layering: each layer adds its own header, and the benefit of layering is independence. Two, packet switching versus circuit switching, together with the pair TCP versus UDP decided by the question of whether loss or delay is worse. Three, the three performance quantities — bandwidth, latency, throughput — and the key sentence that increasing bandwidth cannot fix a latency problem. Four, symmetric versus asymmetric encryption together with the hybrid model and the key-count formula, and every security measure must state what it does NOT protect against.

Computational Thinking, Problem-Solving and Programming

This is the topic with the most marks, and it is marked on discipline more than on memory. Four things decide it. One, the trace table must be built with all columns and all rows, including an initialization row and a loop-exit row; this question type gives almost free marks if done correctly and zero if done in your head. Two, whether the comparison sign is strict or non-strict decides whether the algorithm returns the first or the last occurrence — the difference only shows when there are duplicate values. Three, the conditions for binary search and the argument of amortizing the cost of sorting over the number of searches. Four, bubble versus selection are distinguished by the number of swaps and the ability to stop early, and every statement about efficiency must say which case is being considered.

Abstract Data Structures (HL)

This HL topic is marked on choosing the right structure and being able to justify the choice, not on describing the structure. Four things decide it. One, recursion needs two parts and uses memory proportional to the depth of calls because the frames must exist at the same time on the call stack. Two, a stack and a queue differ only in whether removal happens at the same end or the other end, and from that it follows that a stack is used for problems that need to go back, while a queue is used for problems that need fairness in order of arrival. Three, the three traversals are derived from a rule, not memorized, each has its own use, and inorder traversal of a binary search tree gives a sorted sequence. Four, the efficiency of a tree depends on its balance, and sorted data is the worst case when building a tree.

Resource Management (HL)

This HL topic is marked on diagnosis and on step-by-step calculation. Four things decide it. One, the four scheduling algorithms: you must be able to compute the average waiting time, and remember that round robin improves RESPONSE time, not average waiting time. Two, starvation is an inevitable consequence of scheduling by a static attribute, and the cure is always to bring the time already waited into the decision. Three, the three signs of continuous thrashing — memory nearly full, a high page-fault rate, a saturated disk — together with the warning that high processor utilization can be a symptom rather than a cause. Four, the bottleneck principle: adding capacity somewhere that is not the bottleneck is useless.

Control (HL)

This HL topic is marked on precise vocabulary and on reasoning about trade-offs. Four things decide it. One, the three components: sensor, microprocessor compared with the setpoint, and actuator — name them correctly and give their roles correctly. Two, a closed loop handles any disturbance without needing to know the list of disturbances in advance; the feedback must be NEGATIVE, and real systems also need a dead band. Three, the three levels of timing requirement are distinguished by asking whether a result that arrives late still has value, and a hard real-time system must prove the worst case. Four, a hybrid architecture with the principle of placing locally whatever must not fail and must react immediately; and when evaluating automation, you must state three often-missed consequences: for the distribution of jobs, for failure mechanisms at large scale, and for the erosion of skills.

Option: Object-Oriented Programming and Databases

This option topic is marked on explaining what the concepts DO, not on defining them. Four things decide it. One, encapsulation is for control, not for hiding, and the real value of polymorphism is adding a new type without editing old code. Two, the IS-A statement is the only criterion for inheritance; if you only want to reuse implementation, use composition. Three, the three anomalies — on update, on insert, on delete — are the answer to every question about why normalization is needed, and the practical rule is that every field must depend on the key, the whole key, and nothing but the key. Four, the four properties of a transaction, in which atomicity handles a failure midway while isolation handles concurrent access — and every answer about normalization must state the cost, which is the join.