Skip to main content
Engineering LibreTexts

3.5: Exercises

  • Page ID
    19873
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Below are some questions based on this chapter.

    Questions

    Below are some quiz questions.

    1) Provide the range for each of the following:

    1. signed byte
    2. unsigned byte
    3. signed word
    4. unsigned word
    5. signed double-word
    6. unsigned double-word

    2) Provide the decimal values of the following binary numbers:

    1. \(0000101_2\)
    2. \(0001001_2\)
    3. \(0001101_2\)
    4. \(0010101_2\)

    3) Provide the hex, byte size, two's complement values of the following decimal values. Note, two hex digits expected.

    1. \(-3_{10}\)
    2. \(+11_{10}\)
    3. \(-9_{10}\)
    4. \(-21_{10}\)

    4) Provide the hex, word size, two's complement values of the following decimal values. Note, four hex digits expected.

    1. \(-17_{10}\)
    2. \(+17_{10}\)
    3. \(-31_{10}\)
    4. \(-138_{10}\)

    5) Provide the hex, double-word size, two's complement values of the following decimal values. Note, eight hex digits expected.

    1. \(-11_{10}\)
    2. \(-27_{10}\)
    3. \(+7_{10}\)
    4. \(-261_{10}\)

    6) Provide the decimal values of the following hex, double-word sized, two's complement values.

    1. FFFFFFFB\(_{16}\)
    2. FFFFFFEA\(_{16}\)
    3. FFFFFFF3\(_{16}\)
    4. FFFFFFF8\(_{16}\)

    7) Which of the following decimal values has an exact representation in binary?

    1. 0.1
    2. 0.2
    3. 0.3
    4. 0.4
    5. 0.5

    8) Provide the decimal representation of the following IEEE 32-bit floating-point values.

    1. 0xC1440000
    2. 0x41440000
    3. 0xC0D00000
    4. 0xC0F00000

    9) Provide hex, IEEE 32-bit floating-point representation of the following floating-point values.

    1. \(+11.25_{10}\)
    2. \(-17.125_{10}\)
    3. \(+21.875_{10}\)
    4. \(-0.75_{10}\)

    10) What is the ASCII code, in hex, for each of the following characters:

    1. “A”
    2. “a”
    3. “0”
    4. “8”
    5. tab

    11) What are the ASCII values, in hex, for each of the following strings:

    1. “World”
    2. “123”
    3. “Yes!?”

    This page titled 3.5: Exercises is shared under a CC BY-NC-SA license and was authored, remixed, and/or curated by Ed Jorgensen.

    • Was this article helpful?