CST8110 Intro to Computing - Assignment #1Answer Key II
4. Re-group the 16 binary bits by threes and by fours:
0 101 010 110 010 010(2) 0101 0101 1001 0010(2)
0 5 2 6 2 2(8) octal 5 5 9 2(16) hexadecimal
The number is positive, since the sign bit is zero. Positive numbers can be converted to decimal using the direct multiply-by-powers-of-the-base conversion method:
2 x 16**0 + 9 x 16**1 + 5 x 16**2 + 5 x 16**3 = 21,906(10)
5. [ 91 5B \ 92 5C ] 93 5D
^ 94 5E _ 95 5F ` 96 60
6. a) 11 bits can store 2**11 (2,048) different values
b) All the values are positive if the number is unsigned, so the range is from 0 to +2,047
c) 11-bit signed integers can range from -1,024 to +1,023
7. CPU stands for Central Processing Unit. The CPU reads bytes and words from the computer memory, interpreting the numbers as instruction codes. The instruction codes tell the CPU what to do. The CPU coordinates all computer operations, performs arithmetic and logical operations, and copies bytes and words to and from memory. (Text: section 1.2)
8. Computer memory is made up of binary digits (bits). The bits are grouped into bytes (usually 8 bits) and the bytes are grouped into words (usually 2 or 4 bytes). Each location in memory (each byte or each word) has a unique address so that the CPU can find it and read or write it. (Text: section 1.2)
Followed assignment submission instructions: 10