About the Number System Lab
Number systems are part of Unit 1 (Computer Systems and Organisation) of CBSE Class 11 Computer Science (083). In this lab you get endless conversion questions: type your answer, press Check answer and see at once whether it is right. If it is wrong, the lab shows the full method, so you can find the exact step where you slipped. The Converter works out any number you type, including numbers with a fraction part.
The four number systems
- Binary (base 2): digits 0 and 1. Computers store all data in binary.
- Octal (base 8): digits 0 to 7. One octal digit = 3 binary digits.
- Decimal (base 10): digits 0 to 9, the numbers we use every day.
- Hexadecimal (base 16): digits 0 to 9 and A to F (A = 10 โฆ F = 15). One hex digit = 4 binary digits.
Methods used
- Any base to decimal: multiply each digit by its place value (a power of the base) and add.
- Decimal to any base: divide the whole part by the base again and again and read the remainders from bottom to top; multiply the fraction part by the base again and again and read the whole-number parts from top to bottom.
- Binary to octal or hexadecimal: make groups of 3 or 4 bits starting from the point.
- Octal or hexadecimal to binary: write every digit as 3 or 4 bits.
- Octal โ hexadecimal: go through binary.
Quick reference: 0 to 15
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 11 | 1011 | 13 | B |
| 12 | 1100 | 14 | C |
| 13 | 1101 | 15 | D |
| 14 | 1110 | 16 | E |
| 15 | 1111 | 17 | F |
Good to know
- You can type answers as
101101,(101101)2or with spaces between groups; letters in hexadecimal can be small or capital. - Your score is kept only in this browser. The lab runs on your device and nothing is sent to a server.
- Revise the theory in the Class 11 Computer Science notes and test yourself with a quiz.