Skip to main content
\(\newcommand{\doubler}[1]{2#1} \newcommand{\binary}{\mathtt} \newcommand{\hex}{\mathtt} \newcommand{\octal}{\mathtt} \newcommand{\prog}{\mathtt} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)

Section2.6Exercises

1

Convert \(123_{10}\) to binary.

Hint Answer
2

Convert the following unsigned decimal integers to 8-bit hexadecimal representation:

  1. \(100\)

  2. \(123\)

  3. \(10\)

  4. \(88\)

  5. \(255\)

  6. \(16\)

  7. \(32\)

  8. \(128\)

Answer
3

Convert the following unsigned decimal integers to 16-bit hexadecimal representation:

  1. \(1024\)

  2. \(1000\)

  3. \(32768\)

  4. \(32767\)

  5. \(256\)

  6. \(65535\)

  7. \(4660\)

  8. \(43981\)

Answer
4

Invent a code that would allow us to store letter grades with plus or minus. That is, the grades A, A-, B+, B, B-,…, D, D-, F. How many bits are required for your code?

Answer