Learn the essential computer science fundamentals that power all modern software — including how code runs, what memory and CPU do, and how programming languages interact with machines. No prior experience needed. This course builds the mindset and foundation for programming, DSA, and interviews.
Computers understand numbers, but not the way we do. Humans commonly use the Decimal (Base-10) system. Computers use Binary (Base-2), and sometimes we also use Hexadecimal (Base-16) for programming and debugging.
This is the number system you use every day. It has 10 digits: 0 to 9.
Used by all computers and digital systems. It uses only two digits: 0 and 1.
Commonly used in programming, especially to represent colors, memory addresses, or binary shorthand.
1. Binary to Decimal
Binary: 1101 → Decimal = 1×2³ + 1×2² + 0×2¹ + 1×2⁰ = 13
2. Decimal to Binary
Decimal: 13 → Binary = 1101 (by dividing by 2 and collecting remainders)
3. Binary to Hex
Binary: 11010111 → Grouped: 1101 0111 → Hex = D7
4. Hex to Binary
Hex: A3 → Binary = A=1010, 3=0011 → 10100011
| System | Base | Digits Used | Example |
|---|---|---|---|
| Decimal | 10 | 0–9 | 245 |
| Binary | 2 | 0, 1 | 1101 |
| Hexadecimal | 16 | 0–9, A–F | 2F |
In the next chapter, you’ll learn the difference between SoftwareHardware – and how they work together to run a computer.