FortyFiveOpen the app

FortyFive › Revision notes › IB Computer Science › IB Computer Science: A1 · Computer fundamentals

IB Computer Science: A1 · Computer fundamentals

CPU, memory, binary and hex, logic gates, operating systems. 4 subtopics, 17 key terms, full free lesson below.

This topic is free in the app too. Interactive diagrams, worked examples, check questions and exam-style practice with mark schemes. Open “A1 · Computer fundamentals” in FortyFive →

In this topic: A1.1 · A1.2 · A1.3 · A1.4

A1.1Computer hardware and operation

Key terms

CPU
Central processing unit: fetches, decodes and executes instructions.
ALU
Arithmetic logic unit: performs calculations and logical comparisons.
Control unit (CU)
Directs the flow of data and coordinates the fetch–decode–execute cycle.
Register
A very small, very fast storage location inside the CPU.
Cache
Small, fast memory between the CPU and RAM that stores frequently used data.

Worked example

Explain why adding cache memory can speed up a computer.

  1. Cache is much faster than RAM and sits close to the CPU.
  2. Frequently used instructions and data are kept in cache, so the CPU waits less for memory (fewer slow RAM accesses).
  3. Programs often reuse the same data (locality), so many requests are cache hits.

Exam tip: In FDE questions, mention each register by name and in the right order: PC, MAR, MDR, IR.

A1.2Data representation and logic

Key terms

Bit / byte
A single binary digit / a group of 8 bits.
Hexadecimal
Base 16 (0–9, A–F); one hex digit represents 4 bits.
Character encoding
Mapping characters to binary codes, e.g. ASCII (7/8 bits) or Unicode (many languages, emojis).
Logic gate
A circuit that produces an output from binary inputs (AND, OR, NOT, NAND, NOR, XOR).

Worked example

Convert 205 to binary and hexadecimal.

  1. 205 = 128 + 64 + 8 + 4 + 1 → 1100 1101₂.
  2. Split into nibbles: 1100 = C, 1101 = D → CD₁₆.

Exam tip: Always convert through binary in nibbles of 4: it avoids mistakes between decimal and hex.

A1.3Operating systems and control systems

Key terms

Operating system
Software that manages hardware and provides services to programs and users.
Interrupt
A signal that makes the CPU stop its current task to deal with a higher-priority event.
Scheduling
Deciding which process uses the CPU and for how long.
Control system
A system that uses sensors, a controller and actuators to keep a variable at a set value.

Worked example

Describe how a greenhouse control system keeps the temperature at 25 °C.

  1. A temperature sensor sends readings (via an ADC) to the microprocessor.
  2. The processor compares each reading with the 25 °C set point.
  3. If it is too cold it switches on a heater; if too hot it opens a window or starts a fan (actuators). This repeats continuously: a feedback loop.

Exam tip: In control-system answers, name sensor, processor decision and actuator, and say that the process loops.

A1.4Translation of programs

Key terms

Compiler
Translates a whole high-level program into machine code before it runs.
Interpreter
Translates and executes a program one statement at a time.
Assembler
Translates assembly language into machine code.
Bytecode
Intermediate code run by a virtual machine (e.g. Java's JVM).

Worked example

A developer is writing a game that must run as fast as possible. Should they compile or interpret it? Explain.

  1. Compile: the code is translated once into optimized machine code.
  2. At run time there is no translation overhead, so execution is faster.
  3. The executable can be distributed without the source code.

Exam tip: Compare translators on speed of execution, error reporting, portability and whether source code must be shared.

Practise A1 · Computer fundamentals with exam-style questions →

A2 · Networks →

← All IB Computer Science topics