Page 78 - Programmable Logic Controllers, Fifth Edition
P. 78
CHAPTER 3 REVIEW QUESTIONS
1. Convert each of the following binary numbers to 6. Convert each of the following hexadecimal num-
decimal numbers: bers to binary numbers:
a. 10 a. 4C
b. 100 b. E8
c. 111 c. 6D2
d. 1011 d. 31B
e. 1100 7. Convert each of the following decimal numbers to
f. 10010 BCD:
g. 10101 a. 146
h. 11111 b. 389
i. 11001101 c. 1678
j. 11100011 d. 2502
2. Convert each of the following decimal numbers to 8. What is the most important characteristic of the
binary numbers: Gray code?
a. 7 9. What makes the binary system so applicable to
b. 19 computer circuits?
c. 28
d. 46 10. Define the following as they apply to the binary
e. 57 memory locations or registers:
f. 86 a. Bit
g. 94 b. Byte
h. 112 c. Word
i. 148 d. LSB
j. 230 e. MSB
3. Convert each of the following octal numbers to 11. State the base used for each of the following num-
decimal numbers: ber systems:
a. 36 a. Octal
b. 104 b. Decimal
c. 120 c. Binary
d. 216 d. Hexadecimal
e. 360 12. Define the term sign bit.
f. 1516 13. Explain the difference between the 1’s complement
4. Convert each of the following octal numbers to of a number and the 2’s complement.
binary numbers: 14. What is ASCII code?
a. 74 15. Why are parity bits used?
b. 130
c. 250 16. Add the following binary numbers:
d. 1510 a. 110 + 111
e. 2551 b. 101 + 011
f. 2634 c. 1100 + 1011
5. Convert each of the following hexadecimal num- 17. Subtract the following binary numbers:
bers to decimal numbers: a. 1101 − 101
a. 5A b. 1001 − 110
b. C7 c. 10111 − 10010
c. 9B5
d. 1A6
Number Systems and Codes Chapter 3 59
pet73842_ch03_046-060.indd 59 03/11/15 3:50 PM