Difference between revisions of "CSC231 Exercises Binary Hexadecimal"

From dftwiki3
Jump to: navigation, search
Line 1: Line 1:
Exercises: Binary to hexadecimal and decimal
+
=Exercises: Binary to hexadecimal and decimal=
  
 
        
 
        
# Convert the following numbers to their (unsigned) decimal and hexadecimal equivalent. For each one indicate the amount of storage required to store them (nybble, byte, word, double-word):
+
==Binary to decimal and hexadecimal==
 +
 
 +
Convert the following numbers to their (unsigned) decimal and hexadecimal equivalent. For each one indicate the amount of storage required to store them (nybble, byte, word, double-word):
 
         0
 
         0
 
   
 
   
Line 8: Line 10:
 
   
 
   
 
         0000 1110 0001 1101 0000 0000
 
         0000 1110 0001 1101 0000 0000
# Hex to binary and decimal
+
 
:Same question for these numbers:
+
==Hex to binary and decimal==
 +
Same question for these numbers:
 
         0
 
         0
 
   
 
   
Line 17: Line 20:
 
   
 
   
 
         ffff
 
         ffff
# Decimal to binary and hex
+
 
:Same question for these numbers:
+
== Decimal to binary and hex==
 +
Same question for these numbers:
  
 
           129
 
           129

Revision as of 09:35, 8 September 2008

Exercises: Binary to hexadecimal and decimal

Binary to decimal and hexadecimal

Convert the following numbers to their (unsigned) decimal and hexadecimal equivalent. For each one indicate the amount of storage required to store them (nybble, byte, word, double-word):

        0

        1111

        0000 1110 0001 1101 0000 0000

Hex to binary and decimal

Same question for these numbers:

        0

        1234

        1010

        ffff

Decimal to binary and hex

Same question for these numbers:

         129

         15

         32767