Solutions to other chapters:
  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26  
Java Methods Home Page Skylight Publishing



Java Methods A & AB:
Object-Oriented Programming and Data Structures

Answers and Solutions to Exercises

Chapter 1

2.  
4. (a)
6. (b) F -- files are created by the operating system
(c) F -- only the boot record is in ROM.  Actually, it can boot any operating system that it can find on disk.
8. (c)S (but it must be supported by graphics hardware)
(d)H (software-assisted modems are available, too)
10. (b) T (however, if you refer to "ASCII" characters as a subset of Unicode, then each "ASCII" character, as all Unicode characters, is represented in two bytes, with the first byte equal to 0)
11. (a) 23 = 8
12.

      Binary          Decimal     Hex
(d)  00001011             11       0B
(g)  00000101 10010010  1426     0592
14. 512 * 512 * 8 bits = 256 KB. (It takes 8 bits to represent 256 = 28 different values.)
16. Yes. You can use 2 bits per square, for example 00 = empty, 01 = 'o', 11 = 'x'.
Then you need 9 * 2 = 18 bits = 2.25 bytes.
20. (a) H
(d) S
(f) H




Copyright © 2006 by Skylight Publishing