Computers understand only one language: binary, a series of 0s and 1s. All information, from simple numbers to complex videos, must be translated into this binary format.
This section covers:
Different number systems (binary, denary, hexadecimal)
How computers represent complex data like text, sound, and images
Efficient data storage and compression techniques
1.1 Number Systems
Why Binary?
Computers use binary (0s and 1s) because electronic circuits have two states: on/off.
Three Number Systems:
Denary (Base 10): 0-9 digits, each position represents a power of 10.
Binary (Base 2): 0-1 digits, each position represents a power of 2.
Hexadecimal (Base 16): 0-9 and A-F symbols. Each hex digit represents four binary digits (a nibble).
Conversions (Know all directions):
Denary ↔ Binary ↔ Hexadecimal
Binary to Hex: Group binary digits into nibbles (4 bits), then convert each nibble.
Hex to Binary: Convert each hex digit to its 4-bit binary equivalent.
Why Hexadecimal?
Shorter representation than binary.
Easier for humans to read and write.
Used in:
Memory Addresses: To specify locations in computer memory.
Color Codes: In web design and graphics (e.g., #FFFFFF).
MAC Addresses: Unique identifiers for network interfaces.