Professional Documents
Culture Documents
Test Yourself
1. To represent a nonnegative integer in binary notation means 6. To find the 8-bit two’s complement of a positive integer a
to write it as a sum of products of the form , where . that is at most 255, you , , and .
2. To add integers in binary notation, you use the facts that 7. If a is an integer with −128 ≤ a ≤ 127, the 8-bit represen-
12 + 12 = and 12 + 12 + 12 = . tation of a is if a ≥ 0 and is if a < 0.
3. To subtract integers in binary notation, you use the facts that 8. To add two integers in the range −128 through 127 whose
102 − 12 = and 112 − 12 = . sum is also in the range −128 through 127, you , ,
, and .
4. A half-adder is a digital logic circuit that
, and a full-adder is a digital logic circuit 9. To represent a nonnegative integer in hexadecimal notation
that . means to write it as a sum of products of the form ,
where .
5. The 8-bit two’s complement of a positive integer a
is . 10. To convert a nonnegative integer from hexadecimal to binary
notation, you and .
17. 101002 18. 110102 Find the decimal representations for the integers with the 8-bit
− 11012 − 11012 representations given in 27–30.
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
2.5 Application: Number Systems and Circuits for Addition 95
✶ 37. Show that if a, b, and a + b are integers in the range 1 46. 110010010111002
through 128, then
47. Octal Notation: In addition to binary and hexadecimal,
(28 − a) + (28 − b) = (28 − (a + b)) + 28 ≥ 28 + 27 . computer scientists also use octal notation (base 8) to rep-
resent numbers. Octal notation is based on the fact that any
Explain why it follows that if the 8-bit binary representa-
integer can be uniquely represented as a sum of numbers of
tion of the sum of the negatives of two numbers in the given
the form d · 8n , where each n is a nonnegative integer and
range is computed, the result is a negative number.
each d is one of the integers from 0 to 7. Thus, for example,
Convert the integers in 38–40 from hexadecimal to decimal 50738 = 5 · 83 + 0 · 82 + 7 · 81 + 3 · 80 = 261910 .
notation. a. Convert 615028 to decimal notation.
b. Convert 207638 to decimal notation.
38. A2BC16 39. E0D16 40. 39EB16
c. Describe methods for converting integers from octal to
Convert the integers in 41–43 from hexadecimal to binary nota- binary notation and the reverse that are similar to the
tion. methods used in Examples 2.5.12 and 2.5.13 for con-
verting back and forth from hexadecimal to binary nota-
41. 1C0ABE16 42. B53DF816 43. 4ADF8316
tion. Give examples showing that these methods result
Convert the integers in 44–46 from binary to hexadecimal in correct answers.
notation.
44. 001011102 45. 10110111110001012
Copyright 2010 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.