3.5: Exercises
- Page ID
- 19873
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!?”