Computer Science Principles
Data, algorithms, the internet and the impact of computing, the big ideas of CS
Technology & ProgrammingCount, convert and calculate in binary, hexadecimal and octal like a computer
Finish the 11 lessons (about 1 h 50 min) and pass the 20-question final exam. Your Certificate of Completion is ready the moment you pass.
Every photo on your phone, every song, every message and every game is stored as long rows of just two symbols: 0 and 1. That's the binary number system, and once you understand it, a lot of computing suddenly makes sense: why storage sizes come in numbers like 256 and 1,024, why web colors look like #FF8800, why an old game's score might suddenly reset to zero, and how the letter A becomes the number 65.
This free course teaches number systems from the ground up. You'll start with something you already know, place value in our everyday base-10 system, and use it to understand any base. Then you'll learn to count in binary, convert between binary and decimal in both directions, and recognize the powers of two that show up all over computing.
Next comes hexadecimal, the base-16 shorthand programmers use for colors, memory addresses and network hardware, plus a quick look at octal. You'll add binary numbers with carries, see exactly what overflow is, and learn how computers store negative numbers with two's complement. Finally, you'll find out how text, colors and images become bits, and how to make sense of bits, bytes, kilobytes and megabytes, including why your internet speed is measured in bits but file sizes in bytes.
The course is designed for teens, whether you're studying computer science in school, preparing for a CS exam or just curious about how computers think. No advanced math is needed: if you can add and multiply, you can do everything here. Each lesson includes worked examples, interactive converters, coding challenges and quick checks, and passing the final exam earns you a free certificate of completion.
Use what you know about place value in decimal to understand any base, then learn to count in binary and recognize the powers of two.
Convert binary numbers to decimal using place values, and decimal numbers to binary with two reliable methods.
Learn base 16, the programmer's shorthand for binary, convert it to and from decimal and binary, and meet octal.
Add binary numbers with carries, see what overflow does in a fixed number of bits, and learn how computers store negative numbers.
Discover how letters, colors and pictures become bits, and make sense of bytes, kilobytes, megabytes and internet speeds.
20 questions drawn from a pool of 34. Score 70% or more to pass; retakes get a fresh set of questions.
Computers use binary because it is the only base that can represent large numbers.
True or false?
Answer: False
Any base can represent any whole number; decimal handles huge numbers fine. Computers use binary because their hardware reliably distinguishes two states, on and off, which map naturally onto the digits 1 and 0.
Computer hardware is built from billions of tiny switches called transistors, and a switch is most reliable when it only needs to tell two states apart, on or off. Two states map neatly onto the digits 1 and 0, so binary is the natural language of electronic circuits.
For small numbers, subtract the largest power of two that fits, write a 1 in that place, and repeat with what's left. For larger numbers, repeatedly divide by 2 and read the remainders from bottom to top. Both methods are taught step by step in this course.
Each hexadecimal digit stands for exactly four binary digits, so long binary numbers become short and readable. A byte like 11111111 is just FF in hex. That's why colors, memory addresses and hardware IDs are usually written in hex.
Officially, a kilobyte (kB) is 1,000 bytes and a kibibyte (KiB) is 1,024 bytes. In practice, some operating systems still use "KB" to mean 1,024 bytes, which is why a drive sold as 1 TB shows up as about 931 GB on some computers.
You can start programming without it, but binary explains many things you'll run into, like why 0.1 + 0.2 isn't exactly 0.3, why integers have maximum values and how colors and file sizes work. It's a core topic in computer science courses and exams.
It's the standard way computers store negative whole numbers. The leftmost bit carries a negative place value, so in 8 bits the range is -128 to 127, and the same addition circuits work for both positive and negative numbers.
Data, algorithms, the internet and the impact of computing, the big ideas of CS
Technology & ProgrammingBinary, hardware, algorithms, code and the internet: the ideas behind every computer
Technology & ProgrammingFrom bits and logic gates to processors, memory and the operating system
Technology & ProgrammingProcesses, threads, scheduling, memory, file systems and protection explained
Technology & ProgrammingClasses, encapsulation, inheritance, polymorphism and SOLID design
Technology & ProgrammingBig O, arrays, hash tables, trees, graphs, sorting and dynamic programming with hands-on code
Technology & ProgrammingCookies on education.com.info
We use necessary storage to save your course progress on this device. With your permission we also use analytics and advertising cookies.