Answers to Self-Review Exercises

E.110, 2, 8, 16.
E.2Fewer.
E.3False. Hexadecimal does this.
E.4Hexadecimal.
E.5False. The highest digit in any base is one less than the base.
E.6False. The lowest digit in any base is zero.
E.71 (the base raised to the zero power).
E.8The base of the number system.
E.9Fill in the missing values in this chart of positional values for the rightmost four positions in each of the indicated number systems:
decimal1000100101
hexadecimal4096256161
binary8421
octal5126481
E.10Octal 6530; Hexadecimal D58.
E.11Binary 1111 1010 1100 1110.
E.12Binary 111 011 001 110.
E.13Binary 0 100 111 111 101 100; Octal 47754.
E.14Decimal 2+4+8+32+64=110.
E.15Decimal 7+1*8+3*64=7+8+192=207.
E.16Decimal 4+13*16+15*256+14*4096=61396.
E.17Decimal 177 ...

Get Java™ How to Program, Seventh Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.