Stage 1 of 8
0 correct

Stage 1 of 8 · Start here

Chapter 1 review: everything so far

I’m not in today, so this website is the first half of your lesson. It goes back over all five Chapter 1 lessons, one at a time. Each stage reminds you of the method, then gives you a few quick practice questions. Spend about 18 minutes here.

How this lesson works

  1. Type your name in the box below.
  2. Work through the stages in order. Read the Remind me box first, then practise.
  3. Each practice box has a few dots. Fill the dots, then press Next. Do not get stuck on one stage — the clock is running.
  4. Stuck? Press Show hint. It gives you the method, not the answer.
  5. At the end you get a completion code. Copy it into the top of your worksheet.
  6. Then complete the Chapter 1 Review Worksheet and hand it in.

Timings — keep an eye on the clock

stagetopicabout
2Lesson 1 — Binary and denary3 min
3Lesson 2 — Hexadecimal4 min
4Lesson 3 — Binary addition and overflow3 min
5Lesson 4 — Logical shifts3 min
6Lesson 5 — Two’s complement3 min
7–8Final check and your code2 min
Website total18 min
Then the worksheet (real exam questions)22 min
Two rules. No calculator — you will not have one in the exam. And do not refresh or close this tab: your progress is not saved.

Type your full name. It is used to make your completion code.

Stage 2 of 8 · Lesson 1 · about 3 minutes

Binary and denary

A computer is made of switches. Each switch is off (0) or on (1). One switch is a bit. Eight bits make a byte.

Remind me

The place values. Always write them above the bits, biggest on the left:

Binary → denary. Add the place values that have a 1 under them.
01001101 = 64 + 8 + 4 + 1 = 77

Denary → binary. Start at 128. Does it fit? Write 1 and subtract. If not, write 0. Move right.
77: 128 no · 64 yes (13 left) · 32 no · 16 no · 8 yes (5 left) · 4 yes (1 left) · 2 no · 1 yes → 01001101

Largest 8-bit number: 255 (all 1s). Number of different values: 256, because 0 counts too.

Optional: try it — click the bits

Click any bit to switch it on or off. Can you make 100? Can you make 255?

In the exam: if the question says 8 bits, write all 8. 1101 for 13 loses the mark — write 00001101.

Stage 3 of 8 · Lesson 2 · about 4 minutes

Hexadecimal

Hexadecimal is base 16. It needs sixteen digits, so after 9 it uses letters.

Remind me
hex0123456789ABCDEF
denary0123456789101112131415

1 hex digit = 4 bits (a nibble). So one byte is exactly two hex digits.

Binary → hex. Split into nibbles from the right. Each nibble uses 8 4 2 1.
1011 0110 → 11 and 6 → B6

Hex → denary. Two columns: 16s and 1s.
B6 = (11 × 16) + 6 = 176 + 6 = 182

Denary → hex. Divide by 16. The answer is the first digit, the remainder is the second.
182 ÷ 16 = 11 remainder 6 → B6. (Or go through binary: 182 → 1011 0110 → B6.)

Why use hex? It is shorter than binary, so people make fewer mistakes reading and writing it, and it converts easily to and from binary. The computer still stores binary.

Where is it used? HTML colour codes (#FF8800), MAC addresses, IPv6 addresses, memory dumps, error codes, assembly code.

Optional: try it — see all three at once

Click the bits. Watch the denary and hexadecimal change. Notice each nibble makes one hex digit.

Not this. A3 is not 103. The A is in the 16s column: (10 × 16) + 3 = 163.

Stage 4 of 8 · Lesson 3 · about 3 minutes

Binary addition and overflow

Add from the right, one column at a time, just like denary. Carry into the next column on the left.

Remind me
0 + 0= 0
0 + 1= 1
1 + 1= 0, carry 1(2 in binary is 10)
1 + 1 + 1= 1, carry 1(3 in binary is 11)

Worked example: 45 + 23 = 68. The carries are shown in amber.

Always show your carries — they earn a mark on their own.

OVERFLOW — LEARN BOTH HALVES

The result is too big for the register to hold (bigger than 255 in 8 bits),
so the carry out of the last column is lost.

A register has a fixed number of bits. It cannot grow a ninth one. The answer left in the register is wrong.
Carries do not mean overflow. 51 + 69 has three carries and the answer, 120, fits. Overflow only happens when a 1 carries out of the 128s column.

Stage 5 of 8 · Lesson 4 · about 3 minutes

Logical shifts

A logical shift moves every bit in the register left or right.

Remind me
1. Moveevery bit moves one place
2. Losethe bit at the end falls off
3. Zero ina 0 fills the empty end
placesleft shiftright shift
1× 2÷ 2
2× 4÷ 4
3× 8÷ 8

When a 1 falls off, the rule breaks. Left shift: the most significant bits are lost, so the answer is wrong. Right shift: the least significant bits are lost, so the answer is rounded down.

Optional: try it — shift the register

Click bits to set a number, then shift. Watch what falls off.

In the exam: “state the effect” means name the number. “The value gets smaller” gets no mark. “It is divided by 8” does.

Stage 6 of 8 · Lesson 5 · about 3 minutes

Two’s complement

Two’s complement stores negative numbers. Only one thing changes: the front column is worth −128.

Remind me

Reading one. Front bit 1 means negative. Add the columns, with the front one worth −128.

10110010 = −128 + 32 + 16 + 2 = −78

Writing a negative number. Three steps:

Positive numbers are written as ordinary binary, with a 0 at the front. No flip, no +1.

Range of 8-bit two’s complement: −128 to +127.

Optional: try it — the same bits, two readings

Click the bits. Try 11111111 — ordinary binary says 255, two’s complement says −1.

Not this. Do not just change the front bit to 1. For −32, 10100000 is wrong (it is −96). Flip every bit, then add 1: 11100000.

Stage 7 of 8 · Final check · about 2 minutes

Final check: all five lessons

Seven quick questions. Two are real Cambridge exam questions. The wrong answers are the mistakes students really make. You get one try at each, so think first.

Stage 8 of 8 · Finish

Your completion code

This shows how much of the website you completed. Go back and fill any missing dots to improve it.

Your progress

    Answer the questions to generate your code.

    ------

    Copy this code exactly into the box at the top of your worksheet.

    What to do now

    1. Open the Chapter 1 Review Worksheet.
    2. Type your name, class, date and completion code at the top.
    3. Keep this tab open. You may look back at the Remind me boxes, but no calculator. You have about 22 minutes.
    4. Grey cells are the question. Type in the white cells. Press Tab to move between cells.
    5. Save and hand in the worksheet before the end of the lesson.

    Teacher only

    Check completion codes

    Paste one pupil per line as Name, CODE. The name must be typed the way the pupil typed it (capitals and spaces do not matter).

    Code = NNN-SS-AA-K. NNN matches the name. SS = correct answers and AA = attempts, both in hexadecimal. K = sections completed out of 6 (each practice target reached, plus all seven final-check questions answered).