Subnet Mask Review

ADVERTISEMENT

TCP/IP Subnet Mask Review
Thomas Jerry Scott
Page 1 of 3
Quiz 1:
Binary Arithmetic Practice
Number
128
64
32
16
8
4
2
1
2^0
to
2^7
2^6
2^5
2^4
2^3
2^2
2^1
0
convert
7
6
5
4
3
2
1
165
192
201
75
63
To see how this is done, we will convert 165 from decimal to binary.
The rule is that if your number is greater than or equal to the top number in
the chart, you put a 1; if not you put a 0. If you put a 1, you subtract the top
number in your chart from your number and go from there. Each time, you
reduce the size. Since 165 is greater than 128, we put a 1 in the 128 slot.
Number
128
64
32
16
8
4
2
1
165
1
Then we subtract 128 from 165 (165 – 128 = 37).
Since 37 is < 64, we next put a 0
and move on.
165
1
0
Since 37 < 32, we put a 1 in its slot and subtract 32 from 37, which yields 5.
165
1
0
1
Continuing, this we get two zeros next, as 5 is < 16 and also < 8.
165
1
0
1
0
0
Since 5 = 4 + 1, the final binary result for 165 is
165
1
0
1
0
0
1
0
1

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 3