Skip to main content
CtrlAltRevise
NEWBuilt for Cambridge IGCSE & A Level Computer Science

Your Cambridge CS path in one place.

Follow the Cambridge syllabus step by step with clear lessons, worked examples, exam-style practice, pseudocode tools, and progress tracking built specifically for IGCSE and A Level Computer Science.

Start free Browse the roadmap
TerminalReady

For parents

See exactly how they're doing

A clear, honest view of their revision — without a password, or a single private message.

Illustrative example — not real student data.

Create a parent account →

01 · At a glance

Steady signal
Predicted gradeA86%
Recent question accuracy78%
Study streak12 days
Days to exam42 · 13 May

A transparent study signal

Grade evidence and recent activity are shown separately — never as a promise of final results.

Cambridge · Computer Science

The whole syllabus, mapped

Open any topic, pick a note, and read it right here. Topic one is free to preview.

Syllabus tree

6 topics
01Data representation3 notes · ~7 minFree
Binary & hexadecimal
Two’s complement
Text, sound & images
02Data transmission3 notes · ~5 min
03Hardware3 notes · ~6 min
04Software3 notes · ~5 min
05Algorithm design3 notes · ~6 min
06Programming3 notes · ~8 min

TOPIC 01 · DATA REPRESENTATION · ~7 MIN

Two’s complement

The elegant trick that lets a fixed-width binary pattern hold negative numbers — and the single step students forget under exam pressure.

The sign bit carries weight

A plain 8-bit number runs 0 to 255. Two’s complement reclaims the top half of that range for negatives by giving the most significant bit a negative place value of −128. Every other column stays positive, so reading a value is still just addition.

-128
1
64
1
32
1
16
1
8
0
4
0
2
0
1
0
128 + 64 + 32 + 16 = 16

Worked example

To encode −45, start from the positive value and apply the two-step rule:

  1. Write +4500101101
  2. Invert bits11010010
  3. Add one →11010011

Where marks are lost

Inverting the bits alone gives one’s complement. You must add one afterwards. Examiners reserve a full mark for this final step — skip it and the whole answer is wrong.

Check your understanding

What is the denary value of the 8-bit two’s complement number 11110000?

Ask about this note

CtrlAltRevise AI

Ask about this note

AI
Ask me anything about this note — I’ll explain it another way.

HOW IT WORKS

Learn it, check it, run it

Every syllabus point runs the same loop — read the notes, prove you’ve got it, then write and run real Cambridge pseudocode.

Data representationRevision note

Binary prefixes

Storage counts in powers of two. A kibibyte is 2¹⁰ = 1024 bytes — not 1000. Each prefix climbs by another factor of 1024.

kibi
2¹⁰
mebi
2²⁰
gibi
2³⁰
tebi
2⁴⁰

In this step

Read concise, syllabus-aligned notes with worked examples. Tap any term for a definition.

PSEUDOCODE SANDBOX

Write and run it yourself

A live Cambridge-pseudocode editor. Pick an example or write your own, then press Run.

Examples
EDITABLE
Terminal
Run your program to see output here.

Ready to revise
smarter?

Every tool for Cambridge IGCSE Computer Science in one tab. From $10/month, cancel anytime.

Start free now
CtrlAltRevise — Cambridge Computer Science Learning Platform | CtrlAltRevise