Number System Lab ๐Ÿ”ข

Practise binary, octal, decimal and hexadecimal conversions for Class 11 Computer Science. Check your answer, then see the full working step by step.

Score 0 / 0 Streak 0 Best 0

Convert this number:

โ€ฆ

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

DecimalBinaryOctalHex
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000108
91001119
10101012A
11101113B
12110014C
13110115D
14111016E
15111117F

Good to know

  • You can type answers as 101101, (101101)2 or 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.