Binary & Hex Warm Up, Lesson & Worksheet - Garfield Cs Page 2

ADVERTISEMENT

Binary & Hex Warm Up, Lesson & Worksheet:
10. Counting in Binary
Based on what we have learned Count to 16 (decimal) in Binary:
Notice the Pattern?
0
_____
1
_____
Which of these two numbers is easier to read?
2
_____
Decimal: 212
3
_____
Binary: 11010100
4
_____
(frequently shown as 0b11010100, “0b” for binary)
5
_____
6
_____
11. Hexadecimal: base 16
7
_____
Binary numbers can be very cumbersome to write out, so four bits of
8
_____
binary can be represented as a single Hexadecimal digit,
9
_____
representing the values 0 to 15 (decimal).
10 (A)
_____
For the 16 symbols to represent 0 – 15, when we go beyond 9, we simply add
11 (B) _____
the first few letters of the alphabet: 0 1 2 3 4 5 6 7 8 9 A B C D E F
12 (C) _____
So now which is easier to read?
13 (D) _____
Hexadecimal : D4
(frequently shown as 0xD4, “0x” for hexadecimal)
14 (E)
_____
Binary: 11010100
15 (F)
_____
(frequently shown as 0b11010100, “0b” for binary)
16
_____
Binary Cards… For our class exercise
[from “CS Unplugged” – ]
100. Convert Binary to Decimal:
101. Decimal to Binary:
A.
11 _____
H.
7 _____
B.
100 _____
I.
9 _____
C.
10101 _____
J. 16 _____
D.
00111 _____
K. 22 _____
E.
11001 _____
L. 27 _____
F.
11111 _____
M. 30 _____
G. 100000 _____
K. 33 _____
110.
Can you expand what you have learned here for larger numbers? 2 to the power of:
0 1 2 3
4
5
6
7
8
9
10
11
12
13
14
15
1, 2, 4, 8, 16, ___, ___, ____, ____, ____, _____, _____, _____, _____, _____, _____
(NOTE: these would be ordered in reverse, right to left, when representing Binary digits!)
Garfield Computer Science, March 2014 Mr. Bergquist
Lesson for a Day without computers

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 4