3.5: Exercises
- Page ID
- 19873
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\dsum}{\displaystyle\sum\limits} \)
\( \newcommand{\dint}{\displaystyle\int\limits} \)
\( \newcommand{\dlim}{\displaystyle\lim\limits} \)
\( \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}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\(\newcommand{\longvect}{\overrightarrow}\)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\ket}[1]{\left| #1 \right>}\)
\(\newcommand{\bra}[1]{\left< #1 \right|}\)
\(\newcommand{\braket}[2]{\left< #1 \vphantom{#2} \right| \left. #2 \vphantom{#1} \right>}\)
\(\newcommand{\braopket}[3]{\left< #1 \vphantom{#2}\vphantom{#3} \right| #2 \vphantom{#1}\vphantom{#3} \left| #3 \vphantom{#1}\vphantom{#2} \right>}\)
\(\newcommand{\qmvec}[1]{\mathbf{\vec{#1}}}\)
\(\newcommand{\op}[1]{\hat{\mathbf{#1}}}\)
\(\newcommand{\expect}[1]{\langle #1 \rangle}\)
\(\newcommand{\dfn}[1]{\emph{\textbf{#1}}}\)
Below are some questions based on this chapter.
Questions
Below are some quiz questions.
1) Provide the range for each of the following:
- signed byte
- unsigned byte
- signed word
- unsigned word
- signed double-word
- unsigned double-word
2) Provide the decimal values of the following binary numbers:
- \(0000101_2\)
- \(0001001_2\)
- \(0001101_2\)
- \(0010101_2\)
3) Provide the hex, byte size, two's complement values of the following decimal values. Note, two hex digits expected.
- \(-3_{10}\)
- \(+11_{10}\)
- \(-9_{10}\)
- \(-21_{10}\)
4) Provide the hex, word size, two's complement values of the following decimal values. Note, four hex digits expected.
- \(-17_{10}\)
- \(+17_{10}\)
- \(-31_{10}\)
- \(-138_{10}\)
5) Provide the hex, double-word size, two's complement values of the following decimal values. Note, eight hex digits expected.
- \(-11_{10}\)
- \(-27_{10}\)
- \(+7_{10}\)
- \(-261_{10}\)
6) Provide the decimal values of the following hex, double-word sized, two's complement values.
- FFFFFFFB\(_{16}\)
- FFFFFFEA\(_{16}\)
- FFFFFFF3\(_{16}\)
- FFFFFFF8\(_{16}\)
7) Which of the following decimal values has an exact representation in binary?
- 0.1
- 0.2
- 0.3
- 0.4
- 0.5
8) Provide the decimal representation of the following IEEE 32-bit floating-point values.
- 0xC1440000
- 0x41440000
- 0xC0D00000
- 0xC0F00000
9) Provide hex, IEEE 32-bit floating-point representation of the following floating-point values.
- \(+11.25_{10}\)
- \(-17.125_{10}\)
- \(+21.875_{10}\)
- \(-0.75_{10}\)
10) What is the ASCII code, in hex, for each of the following characters:
- “A”
- “a”
- “0”
- “8”
- tab
11) What are the ASCII values, in hex, for each of the following strings:
- “World”
- “123”
- “Yes!?”


