24 total
By the end of this topic, you should be able to:
Binary is a number system that uses only two digits: 1 and 0. It is called a base-2 system because everything is built using powers of 2.
Computers use binary because of how they are physically built. Inside a computer, there are millions of tiny electronic components called logic gates. These logic gates can only exist in two states:
Think of it like a light switch — it's either on or off, nothing in between.
All data must be converted to binary before a computer can process it. This includes:
Processing with Logic Gates: When you perform any operation on a computer (like adding two numbers), the data is processed using logic gates. These gates only understand two states (1 and 0), so binary is the perfect match.
Storage in Registers: A register is a small storage area inside the computer's processor that holds binary data temporarily while it's being processed. For example, an 8-bit register can hold 8 binary digits (bits) at once.
Denary is the number system we use every day. It is called base-10 because it uses 10 different digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
Each position in a denary number represents a power of 10:
| 10³ | 10² | 10¹ | 10⁰ |
|---|---|---|---|
| 1000 | 100 | 10 | 1 |
Example: The number 3268 means:
Binary is a base-2 number system using only two digits: 0 and 1.
Each position represents a power of 2:
| 2⁷ | 2⁶ | 2⁵ | 2⁴ | 2³ | 2² | 2¹ | 2⁰ |
|---|---|---|---|---|---|---|---|
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
This is an 8-bit binary number (8 digits). A single binary digit is called a bit. 8 bits together make a byte.
Important: In your exam, binary numbers will be a maximum of 16 bits long.
The largest 8-bit binary number is 11111111 which equals 255 in denary. The largest 16-bit binary number is 1111111111111111 which equals 65,535 in denary.
Hexadecimal (often shortened to "hex") is a base-16 number system. It uses 16 different symbols:
| Denary | Hexadecimal |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 | 7 |
| 8 | 8 |
| 9 | 9 |
| 10 | A |
| 11 | B |
| 12 | C |
| 13 | D |
| 14 | E |
| 15 | F |
Each hex digit represents exactly 4 bits (called a nibble).
Sign in to view full notes