To understand how a computer really works, IB Computer Science students must understand how data moves inside the system. Programs do not magically run in one place — data is constantly transferred between memory, registers, and the CPU using buses.
This topic builds directly on CPU components and the fetch–decode–execute cycle, and it frequently appears in Paper 1 system questions. Clear explanations are essential for full marks.
Memory: Where Programs and Data Are Stored
Main memory (RAM) is where:
- Programs currently in use are stored
- Data needed by those programs is held
RAM is much faster than secondary storage (like hard drives), but it is still slower than registers. This is why data is constantly moved from memory into the CPU during execution.
Key IB point:
- RAM stores instructions and data temporarily
- Data must be moved to the CPU before it can be processed
Registers: Ultra-Fast Storage Inside the CPU
Registers are very small memory locations inside the CPU.
They are used to:
- Hold the current instruction
- Store data being processed
- Store memory addresses
- Hold intermediate results
Registers are faster than RAM because they are located directly in the CPU and do not require external access.
Common registers IB students should know include:
- Program Counter (PC) – holds the address of the next instruction
