Master code, logic & algorithmic thinking
B2 Programming: Write Code That Scores
Turn computational thinking into exam-ready solutions. This unit equips you with the programming toolkit—constructs, data structures, algorithms, and IA-ready practices—that IB Computer Science demands at both Standard and Higher Level.
- IBDP COMPUTER SCIENCE
This unit
- Unit of Computer Science
- 6 / 8
Overview
B2 Programming
B2 Programming covers the core programming constructs, data structures, and algorithmic strategies that form the backbone of the IB Computer Science syllabus. Students learn to design, implement, and trace solutions in pseudocode and a high-level language (typically Java or Python), mastering recursion, collections, and standard algorithms along the way.
Assessment combines Paper 1 (theory and trace tables), Paper 2 (practical problem-solving), and the Internal Assessment (IA) where you develop a fully documented computational solution. HL students extend into abstract data structures, recursion depth, and OOP design patterns.
Key ideas
What B2 Programming covers
- 01
Computational Thinking Foundations
Decomposition, pattern recognition, abstraction, and algorithm design—the four pillars that structure every IB coding task.
- 02
Core Programming Constructs
Sequence, selection, iteration, modularity, and exception handling expressed in pseudocode and your chosen high-level language.
- 03
Data Structures & Collections
Arrays, ArrayLists, stacks, queues, linked lists, trees, and hash maps—with HL-exclusive depth on recursion and ADT implementation.
- 04
Standard Algorithms & Efficiency
Searching, sorting, traversal, and recursion; trace tables, Big-O reasoning, and choosing the right tool for the problem.
- 05
IA-Ready Development Practices
Version control, testing strategies, documentation standards, and client-focused design—everything your Internal Assessment needs.
- 06
HL Extensions: OOP & Advanced Topics
Inheritance, polymorphism, encapsulation, design patterns, and recursive algorithms that differentiate Higher Level mastery.
Outcomes
What you will learn
- Translate real-world problems into pseudocode and working programsPractice the full cycle: specification → algorithm → trace table → coded solution → test evidence.
- Select and implement appropriate data structures for given scenariosJustify ArrayList vs linked list, stack vs queue, or tree vs hash map with time/space complexity arguments.
- Trace and debug recursive algorithms with confidenceMaster base cases, recursive steps, stack frames, and tail recursion—critical for HL Paper 1 and IA success.
- Apply standard sorting and searching algorithms efficientlyImplement bubble, merge, quick sort; linear and binary search; analyse best/average/worst case performance.
- Produce IA documentation that meets all marking criteriaCriterion A–E coverage: planning, design, development, testing, and evaluation with examiner-ready artefacts.
- Write clean, modular, maintainable code in Java or PythonNaming conventions, commenting, error handling, and OOP principles that score highly on readability rubrics.
Ready to master B2 Programming?
Turn computational thinking into exam-ready solutions. This unit equips you with the programming toolkit—constructs, data structures, algorithms, and IA-ready practices—that IB Computer Science demands at both Standard and Higher Level.