Difference between revisions of "CSC231 Review of hexadecimal number system"

From dftwiki3
Jump to: navigation, search
(Some exercises to help you review the hexadecimal system)
Line 1: Line 1:
 
--[[User:Thiebaut|D. Thiebaut]] 10:23, 14 September 2012 (EDT)
 
--[[User:Thiebaut|D. Thiebaut]] 10:23, 14 September 2012 (EDT)
 
----
 
----
 
+
<center>
 +
{| class="wikitable"
 +
! binary
 +
! hexadecimal
 +
! decimal
 +
|-
 +
|
 +
0000
 +
|
 +
0
 +
|
 +
0
 +
|-
 +
|
 +
0001
 +
|
 +
1
 +
|
 +
1
 +
|-|
 +
0010
 +
|
 +
2
 +
|
 +
2
 +
|-|
 +
0011
 +
|
 +
3
 +
|
 +
3
 +
|-|
 +
0100
 +
|
 +
4
 +
|
 +
4
 +
|-|
 +
0101
 +
|
 +
5
 +
|
 +
5
 +
|-|
 +
0110
 +
|
 +
6
 +
|
 +
6
 +
|-|
 +
0111
 +
|
 +
7
 +
|
 +
7
 +
|-|
 +
1000
 +
|
 +
8
 +
|
 +
8
 +
|-|
 +
1001
 +
|
 +
9
 +
|
 +
9
 +
|-|
 +
1010
 +
|
 +
a
 +
|
 +
10
 +
|-|
 +
1011
 +
|
 +
b
 +
|
 +
11
 +
|-|
 +
1100
 +
|
 +
c
 +
|
 +
12
 +
|-|
 +
1101
 +
|
 +
d
 +
|
 +
13
 +
|-|
 +
1110
 +
|
 +
e
 +
|
 +
14
 +
|-|
 +
1111
 +
|
 +
f
 +
|
 +
15
 +
|}
 +
<br />
 +
</center>
 
=Some exercises to help you review the hexadecimal system=
 
=Some exercises to help you review the hexadecimal system=
  

Revision as of 06:52, 11 September 2014

--D. Thiebaut 10:23, 14 September 2012 (EDT)


0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
binary hexadecimal decimal

0000

0

0

0001

1

1

2

2

3

3

4

4

5

5

6

6

7

7

8

8

9

9

a

10

b

11

c

12

d

13

e

14

f

15


Some exercises to help you review the hexadecimal system

  • What are the first 32 hex numbers, starting with 00?




  • Convert these hexadecimal numbers to binary, and to decimal.
  1111

  1234

  AAAA

  F001

  FFFF

  • Convert these decimal numbers to binary, and hexadecimal
  65

  127

  1024

     
  • What comes after these hexadecimal numbers, logically?


   1111

   9999

   19F

   1ABF

   FFEF

   F00F

   ABCDEF
  • Perform the following additions in hex:
  1111 + AAAA

  1234 + F

  1234 + ABCD

  FFFF + FFFF