Exam Preparation
IB DP Computer Science: Paper-by-Paper Exam Preparation
How to prepare for IB DP Computer Science Papers 1 and 2: using the pre-seen case study, practising Java or Python for Paper 2, trace tables and a checklist.
- Subject
- Computer Science
- Level
- IB
- Topic
- Exam preparation – Papers 1 and 2
- Author
- Marlbridge Academic Team
- Updated
- Reviewed by
- Harris Khan (what this means)
Aligned to International Baccalaureate IB Diploma Programme Computer Science (DP Computer Science). Official subject brief .
Syllabus page (what it covers and how it is assessed): IB Diploma Programme Computer Science.
Found an error? Report a correction.
Need help with this topic? Request a free trial class for IB Diploma Programme Computer Science (DP Computer Science (2014) / DP Computer Science (2027)).
The assessment revision notes set out what Paper 1 and Paper 2 weigh and test. These notes turn that into an exam-day plan – how to use the pre-seen case study, what to practise for Paper 2’s algorithmic questions, and a worked scenario – alongside the full syllabus guide and subject overview already on the site.
Paper 1: use the pre-seen case study as active research material
Paper 1’s case study is released well before the exam, so questions drawing on it are, in effect, partially predictable – research and familiarity built beforehand translate directly into faster, more confident answers. Treat the case study as material to actively analyse and annotate over the weeks before the exam, not background reading to skim once: identify likely question angles (how would this organisation’s system need to scale, what security concerns would it face, what trade-offs would its design involve) and prepare short notes on each, since case-study questions carry a meaningful share of Paper 1’s marks and reward genuine familiarity over surface recognition.
Paper 1’s extended-response questions on core concepts otherwise use command terms consistent with the DP sciences group – define, identify, outline at the lower tier; explain, describe, compare in the middle; evaluate, discuss, justify at the top, often applied directly to the case study.
Paper 2: algorithmic thinking, answered in Java or Python
Paper 2 is set on Theme B and focuses on solving problems through algorithmic thinking. For this course (first assessment 2027), candidates answer Paper 2 in either Java or Python, and all students are assessed on questions that require knowledge of programming. The outgoing course assessed algorithms in pseudocode, so revision material that tells you to prepare “in pseudocode, not a language” is describing that course, not this paper. The common mistake now runs the other way: revising only the logic of algorithms without writing, running and debugging real code in the language your course uses.
Exam-preparation priority: practise tracing code by hand – writing out variable values line by line as it executes – and practise writing short programs in your course language from a described problem. Tracing is a mechanical skill that improves quickly with deliberate practice, and it underpins both questions that ask you to predict what code does and questions that ask you to write code, where you should check how your own code behaves before committing it to the answer.
Worked practice scenario: tracing a loop
A Paper 2-style question gives the following code and asks you to trace it, stating the value of
total after the loop finishes, for the input list [4, 7, 2, 9]. It is shown in Python; the Java
version has the same logic.
total = 0
for value in values:
if value > 5:
total = total + value
print(total)
Trace table:
value = 4 -> 4 > 5 is FALSE -> total stays 0
value = 7 -> 7 > 5 is TRUE -> total = 0 + 7 = 7
value = 2 -> 2 > 5 is FALSE -> total stays 7
value = 9 -> 9 > 5 is TRUE -> total = 7 + 9 = 16
Output: total = 16
A trace-table answer like this – one row per iteration, showing the condition checked and the variable’s value after each step – is exactly the structured working “trace” questions reward. Writing out each iteration explicitly, rather than trying to compute the final answer mentally, both reduces careless errors and shows the working examiners need to award method marks even if the final value is wrong.
Before/during exam checklist
- Before the exam: research and annotate the Paper 1 pre-seen case study across several weeks, not just once; practise hand-tracing loops and conditionals until a trace table is automatic; practise writing, running and debugging short programs in Java or Python (whichever your course uses) from a described problem.
- During Paper 1: draw explicitly on prior research into the case study where a question references it, rather than answering as if it were entirely unfamiliar.
- During Paper 2: always build a trace table for “trace” questions rather than computing the answer mentally; for questions that ask you to write code, briefly trace your own code against a simple example before finalising it, to catch logic errors before submitting.
- On every paper: match your answer’s command term to the question – a “define” or “identify” question needs a short, precise answer; “evaluate,” “discuss” and “justify” need a reasoned judgement.
Self-test
- Why is Paper 1’s case study, in effect, partially predictable exam content?
- In what form do candidates answer Paper 2 on this course, and what does that mean for revision?
- Using the worked scenario’s code and the input list [4, 7, 2, 9], what is the value of
totalafter the loop finishes? - Why does building a trace table help even when the final traced value is wrong?
- What should you do before finalising code you have written in answer to a question?
Answers: 1. Because it is released well before the exam, so research and familiarity built beforehand translate directly into faster, more confident answers on questions drawing on it. 2. In Java or Python, and every student faces questions requiring programming knowledge — so revision must include writing and debugging real code in the course language, not only reasoning about algorithms in the abstract. 3. 16 (0 + 7 + 9, since only values greater than 5 – namely 7 and 9 – are added to the running total). 4. Because a clear, step-by-step trace table shows the working and method used, which lets examiners award method marks even if a small error means the final traced value is incorrect. 5. Briefly trace the written code against a simple example to check its logic works as intended, catching errors before committing to the final answer.
Frequently asked questions
How should you prepare the IB Computer Science Paper 1 case study? Analyse and annotate the pre-seen case study over several weeks, identifying likely question angles such as scaling, security and design trade-offs, rather than skimming it once.
Do you still revise pseudocode for IB Computer Science Paper 2? For the course first assessed in 2027, candidates answer Paper 2 in Java or Python, so revision must include writing, running and debugging real code. Material describing pseudocode-only answers refers to the outgoing course.
Why use a trace table in IB Computer Science Paper 2? A trace table, with one row per iteration showing the condition and variable values, reduces careless errors and shows the working needed for method marks even if the final value is wrong.
What do command terms such as evaluate and justify require? Define and identify need short, precise answers, while evaluate, discuss and justify need a reasoned judgement, often applied to the case study.
Official syllabus
International Baccalaureate Organization, Diploma Programme Subject Brief – Sciences: Computer Science, first assessment 2027, published 2024 – the same source cited by the assessment revision notes and full syllabus guide. The worked scenario above is an original example written for this resource, not a reproduction of any official past or sample paper question.
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.
Related resources
-
Study guides
IB Diploma Programme Computer Science: Syllabus Guide
Full syllabus map for IB DP Computer Science, first assessment 2027: Theme A and Theme B sub-topics, the case study and recommended teaching hours at SL and HL.
Computer Science · International Baccalaureate · IB
Read guide -
Subject guides
IB Diploma Programme Computer Science: Subject Overview
An overview of IB Diploma Programme Computer Science – computational thinking, algorithmic thinking and programming, and what the course aims to develop.
Computer Science · International Baccalaureate · IB
Read course guide -
Study guides
IB DP Computer Science: Theme A – Concepts of Computer Science
Guide to Theme A of IB DP Computer Science, first assessment 2027: computer fundamentals, networks, databases with SQL, machine learning and the case study.
Computer Science · International Baccalaureate · IB
Read guide
Related articles
-
teaching
A Level tuition in Dubai: Cambridge or Pearson Edexcel International A Level?
Schools in Dubai and Abu Dhabi teach either Cambridge International AS & A Level or Pearson Edexcel International A Level. How the two are structured, why it matters for tuition, and how online classes from Lahore work.
9 October 2026
-
curriculum guides
Choosing subjects at IGCSE and A Level
How subject choices at 14 and 16 affect university options later, and how to keep pathways open without overloading a timetable.
28 July 2026
Studying this with a teacher
Working through Computer Science IB?
This page is free and stays free. If you would rather be taught it, Marlbridge runs Computer Science classes one-to-one, online in your own time zone. The first trial class is free. WhatsApp replies within an hour (8am–11pm Pakistan time, every day); email the same day.
IB Computer Science teachers at Marlbridge