Lecture Practice Quiz x 4. Quiz - You should now be able to do the following. 1. Convert 500 (base 10) to ______ (base 2) 2. Convert 10101010 (base 2) to ______ (base 10) 3. Convert 155.247.166.60 (the IP address of www.temple.edu) into four (base 2) numbers. 4. Convert 255 (base 2) to ______ (base 10). 7. Quiz questions. All answers should be actual numbers (e.g. one billion) not formulas (e.g. 2**30). 1. If the 8-bits in a byte are used to represent integers, how many different integers can be represented. 2. If the 8-bits in a byte are used to store non-negative integers (beginning with zero), what is the largest decimal integer that can be represented. 3. If a c compiler uses 4 bytes (32 bits) to store an unsigned int, what (approximately) is the largest decimal integer that can be stored. 4. The original 1981 IBM PC used an Intel 8088 processor. In 8088 systems, each byte of memory was assigned a unique 20-bit address. What limit did this place on the size of memory (maximum number of bytes of memory). 5. The U.S. government limited certain types of encrpytion keys (passwords) to 40 bits. How many keys would you have to test to "break the code" on a message that used a 40-bit encryption key? 6. An IP address like 155.247.166.60 is just a sequence of four 8-bit bytes where each byte has been converted to a decimal number between 0 and 255. If each computer on the Internet needed a unique IP address, what is the maximum number of computers that could be connected to the Internet. 9. Quiz questions 1. Compute 10101011 (base 2) + 01001111 (base 2) = _ _ _ _ _ _ _ _ (base 2) 2. Multiply 11010 (base 2) by 110 (base 2). Do the arithmetic (and leave the result) in base 2. Do not convert to base 10 except to check your answer. 3. Subtract 101 (base 2) from 101000 (base 2). 4. To check your answers, fire up Windows and click on Start -> Accessories -> Calculator -> View -> Scientific, and use the Dec and Bin buttons. 11. Quiz questions 1. Count from 0 (base 16) to 20 (base 16). (Hint - 33 numbers total) 2. Count from 0 (base 3) to 1000 (base 3). (hint - 28 numbers total) 3. Convert A3B (base 16) to (base 10). 4. Convert 555 (base 10) to (base 16). 5. Convert A3B (base 16) to (base 2). 6. Convert 1010111100000111 (base 2) to (base 16). 7. Convert 1234 (base 5) to (base 10). 8. Convert 100 (base 10) to (base 3). 9. Compute 1 + F (base 16). 10. Compute 1 + 1F9 (base 16). 11. Compute 1 + 19F (base 16). 12. Compute 1 + 9FF (base 16). 13. B&O Practice Problem 2.1, 2.2, 2.3, 2.4 13. Quiz questions 1. Add 123 (base 16) and 456 (base 16), answer in base 16. 2. Add 123 (base 16) and ABC (base 16), answer in base 16. 3. Add 456 (base 16) and ABC (base 16), answer in base 16. 3. Add ABC (base 16) and DEF (base 16), answer in base 16. 4. Add 123 (base 5) and 234 (base 5), answer in base 5.