Problems
Problems
KEY TERMS
Key terms and other bold terms in the chapter are defined in the end-of-book glossary.
Alphanumeric Consisting of numerals, letters, and other characters.
ASCII American Standard Code for Information Interchange; the most widely used alphanumeric
code.
BCD Binary coded decimal; a digital code in which each of the decimal digits, 0 through 9, is
represented by a group of four bits.
Byte A group of eight bits.
Cyclic redundancy check (CRC) A type of error detection code.
Floating-point number A number representation based on scientific notation in which the
number consists of an exponent and a mantissa.
Hexadecimal Describes a number system with a base of 16.
LSB Least significant bit; the right-most bit in a binary whole number or code.
MSB Most significant bit; the left-most bit in a binary whole number or code.
Octal Describes a number system with a base of eight.
Parity In relation to binary codes, the condition of evenness or oddness of the number of 1s in a
code group.
TRUE/FALSE QUIZ
Answers are at the end of the chapter.
1. The octal number system is a weighted system with eight digits.
2. The binary number system is a weighted system with two digits.
3. MSB stands for most significant bit.
4. In hexadecimal, 9 1 1 = 10.
5. The 1’s complement of the binary number 1010 is 0101.
6. The 2’s complement of the binary number 1111 is 0000.
7. The right-most bit in a signed binary number is the sign bit.
8. The hexadecimal number system has 16 characters, six of which are alphabetic characters.
9. BCD stands for binary coded decimal.
10. An error in a given code can be detected by verifying the parity bit.
11. CRC stands for cyclic redundancy check.
12. The modulo-2 sum of 11 and 10 is 100.
SELF-TEST
Answers are at the end of the chapter.
1. 3 * 101 + 4 * 100 is
(a) 0.34 (b) 3.4 (c) 34 (d) 340
2. The decimal equivalent of 1000 is
(a) 2 (b) 4 (c) 6 (d) 8
3. The binary number 11011101 is equal to the decimal number
(a) 121 (b) 221 (c) 441 (d) 256
4. The decimal number 21 is equivalent to the binary number
(a) 10101 (b) 10001 (c) 10000 (d) 11111
5. The decimal number 250 is equivalent to the binary number
(a) 11111010 (b) 11110110 (c) 11111000 (d) 11111011
6. The sum of 1111 1 1111 in binary equals
(a) 0000 (b) 2222 (c) 11110 (d) 11111
Problems 117
PROBLEMS
Answers to odd-numbered problems are at the end of the book.
instant. For example, if the LSB changes first, the number will appear as 1110 during the
transition from 1111 to 0000 and may be misinterpreted by the system. Illustrate how the Gray
code avoids this problem.
56. Convert each binary number to Gray code:
(a) 11011 (b) 1001010 (c) 1111011101110
57. Convert each Gray code to binary:
(a) 1010 (b) 00010 (c) 11000010001
58. Convert each of the following decimal numbers to ASCII. Refer to Table 2–7.
(a) 1 (b) 3 (c) 6 (d) 10 (e) 18
(f) 29 (g) 56 (h) 75 (i) 107
59. Determine each ASCII character. Refer to Table 2–7.
(a) 0011000 (b) 1001010 (c) 0111101
(d) 0100011 (e) 0111110 (f) 1000010
60. Decode the following ASCII coded message:
1001000 1100101 1101100 1101100 1101111 0101110
0100000 1001000 1101111 1110111 0100000 1100001
1110010 1100101 0100000 1111001 1101111 1110101
0111111
61. Write the message in Problem 60 in hexadecimal.
62. Convert the following statement to ASCII:
30 INPUT A, B
ANSWERS
SECTION CHECKUPS
Section 2–1 Decimal Numbers
1. (a) 1370: 10 (b) 6725: 100 (c) 7051: 1000 (d) 58.72: 0.1
2. (a) 51 = (5 * 10) + (1 * 1)
(b) 137 = (1 * 100) + (3 * 10) + (7 * 1)
(c) 1492 = (1 * 1000) + (4 * 100) + (9 * 10) + (2 * 1)
(d) 106.58 = (1 * 100) + (0 * 10) + (6 * 1) + (5 * 0.1) + (8 * 0.01)