2.1
Numbering systems: decimal, binary, octal, hexadecimal (2.1) is a Class 9 Computer Science lesson for the Punjab boards. It walks through the idea in plain steps, then sets a short check, in English, Urdu or Roman Urdu.
Your guide: Miss HiraExplains computers with chai, cricket and your phone.
Chapter 1 of every subject is free. Unlock every chapter of this class with the full course.
Unlock full courseAlready paid? Sign in with the Google account you paid with.
Every numbering system gives each digit a place value. It is a power of the base. Decimal is base 10 (digits 0–9): 523 = 5×102 + 2×101 + 3×100. Binary is base 2 (digits 0, 1): 1011 = 8 + 0 + 2 + 1 = 11.
Computers use binary because digital circuits have two states: ON (1) and OFF (0). Octal is base 8 (digits 0–7) and each octal digit equals 3 bits; hexadecimal is base 16 (0–9 and A–F for 10–15) and each hex digit equals 4 bits.
To convert decimal to base b, divide by b again and again and write each remainder. Read the remainders from bottom to top: 83 → 1010011 (binary), 123 (octal); 2297 → 8F9 (hex). Binary to octal or hex: group bits from the right in 3s or 4s, adding zeros on the left if needed.
Step 1 / 1
Every numbering system gives each digit a place value. It is a power of the base. Decimal is base 10 (digits 0–9): 523 = 5×102 + 2×101 + 3×100. Binary is base 2 (digits 0, 1): 1011 = 8 + 0 + 2 + 1 = 11.
Computers use binary because digital circuits have two states: ON (1) and OFF (0). Octal is base 8 (digits 0–7) and each octal digit equals 3 bits; hexadecimal is base 16 (0–9 and A–F for 10–15) and each hex digit equals 4 bits.
To convert decimal to base b, divide by b again and again and write each remainder. Read the remainders from bottom to top: 83 → 1010011 (binary), 123 (octal); 2297 → 8F9 (hex). Binary to octal or hex: group bits from the right in 3s or 4s, adding zeros on the left if needed.
Divide, keep remainders, read bottom to top.
Found a mistake? Tell us the lesson and the line at exciting@boringeducation.com.
No ads. Tell us what to fix.