Exercises 2.2 Exercises
1.
Express the following bit patterns in hexadecimal.
\(\displaystyle \binary{0100} \; \binary{0101} \; \binary{0110} \; \binary{0111}\)
\(\displaystyle \binary{1000} \; \binary{1001} \; \binary{1010} \; \binary{1011}\)
\(\displaystyle \binary{1111} \; \binary{1110} \; \binary{1101} \; \binary{1100}\)
\(\displaystyle \binary{0000} \; \binary{0010} \; \binary{0101} \; \binary{0010}\)
\(\displaystyle \hex{4567}\)
\(\displaystyle \hex{89ab}\)
\(\displaystyle \hex{fedc}\)
\(\displaystyle \hex{0252}\)
2.
Express the following bit patterns in binary.
\(\displaystyle \hex{83af}\)
\(\displaystyle \hex{9001}\)
\(\displaystyle \hex{aaaa}\)
\(\displaystyle \hex{5555}\)
\(\displaystyle \binary{1000} \; \binary{0011} \; \binary{1010} \; \binary{1111}\)
\(\displaystyle \binary{1001} \; \binary{0000} \; \binary{0000} \; \binary{0001}\)
\(\displaystyle \binary{1010} \; \binary{1010} \; \binary{1010} \; \binary{1010}\)
\(\displaystyle \binary{0101} \; \binary{0101} \; \binary{0101} \; \binary{0101}\)
3.
How many bits are represented by each of the following?
\(\displaystyle \hex{ffff} \; \hex{ffff}\)
\(\displaystyle \hex{7fff} \; \hex{58b7} \; \hex{def0}\)
\(\displaystyle \binary{1111}_{2}\)
\(\displaystyle \hex{1111}_{16}\)
4.
How many hexadecimal digits are required to represent each of the following?
eight bits
thirty-two bits
sixty-four bits
ten bits
twenty bits
seven bits