Prev | Current Page 490 | Next

Carl Reynolds and Paul Tymann

"Schaum's Outline of Principles of Computer Science"

1 Write the number 229 in base-2.
11100101
3.2 What is the base-10 value of 11100101?
229
3.3 What are the units (values) of the first 3 columns in a base-8 (octal) number?
64s 8s units
82 81 80
3.4 What is the base-2 value of the base-8 (octal) number 377?
11111111
3.5 Convert the following base-10 numbers to base-2:
37
470
1220
17
99
100101
111010110
10011000100
10001
1100011
3.6 Convert the following base-2 numbers to base-10:
00000111
7
10101010
170
00111001
57
01010101
85
00110011
51
3.7 Assume a 16-bit signed integer data representation where the sign bit is the msb.
a What is the largest positive number that can be represented?
b Write the number 17,440.
c Write the number ??’20.
d What is the largest negative number that can be represented?
a 32,767
b 0100010000100000
c 1111111111101100
d -32,768
ANSWERS TO REVIEW QUESTIONS 185
3.8 Using ASCII encoding, write the bytes to encode your initials in capital letters.
CHR
C 67 1000011
H 72 1001000
R 82 1010010
3.9 Referring to the list of Intel x86 instructions in this chapter, arrange a set of instructions to add the
values stored in memory locations 50 and 51, and then to store the result in memory location 101.


Pages:
478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502
www.books61.hobbitstory.com tanie noclegi międzyzdroje pokoje windsurfing Władysławowo noclegi e-lady