September 2001
Beginner
970 pages
23h 20m
English
| 1: | Convert the following decimal values to binary:
|
| 2: | Convert the following binary values to decimal, octal, and hexadecimal:
|
| 3: | Evaluate the following expressions; assume each value is 8 bits:
|
| 4: | Evaluate the following expressions; assume each value is 8 bits:
|
| 5: | Because the ASCII code uses only the final 7 bits, sometimes it is desirable to mask off the other bits. What's the appropriate mask in binary? In decimal? In octal? In hexadecimal? |
| 6: | In Listing 15.2, you can replace
while (bits-- > 0)
{
mask |= bitval;
bitval <<= 1;
}
with
while (bits-- > 0)
{
mask += bitval;
bitval *= 2;
}
and the program still works. Does this ... |
Read now
Unlock full access