: Answer these questions, using hand/brain calculations (i.e., without electronic tools such as calculators): Treat the questions as if they were conducted during an exam, which will be conducted without electronics. You will be inputting these answer into a ‘Quiz’ on the ConneX system. Please include only the digits of the appropriate number system. In particular, do not precede your answers with ‘0x’ or ‘0b’ or follow your answers with base indicators, like subscript 2 or 10.
1. A processor uses 23 bits for its memory addressing. How many possible distinct locations (in decimal) can the computer address?
2. How is the memory address (6234)10 represented in binary (base 2)?
3. How is the memory address (6234)10 represented in hexadecimal (base 16)?
4. What is the maximum 2’s complement integer that can be stored in a memory location that stores 17 bits of data? (Give your answer in decimal.)
5. What is the minimum 2’s complement (or smallest negative) integer that can be stored in a memory location that stores 17 bits of data? (Give your answer in decimal.)
6. Convert the numeral 0x3C32CB directly to binary.
7. Convert 142010 into the 2’s complement 16-bit binary representation.
8. Convert -25210 into the 2’s complement 16-bit binary representation.
9. Convert the octal value 10478 into binary
10. Convert the octal value 10478 into Hexadecimal
11. Given two binary numbers 0b10011011 and 0b01101001, perform a bit wise AND operation. Provide the result in binary.
12. Given two binary numbers 0b10101011 and 0b01001101, perform a bit wise OR operation. Provide the result in binary.
13. Given two binary numbers 0b10011010 and 0b01011001, perform a bit wise XOR operation. Provide the result in binary.
14. Given the hexadecimal number 0x19BC, perform a bit wise NOT operation (complement). Provide the result in hexadecimal.
15. When a binary shift operation is performed binary data can be shifted right or left and a ‘0’ is brought to fill vacated positions while the bit that is shifted out is discarded. Shift the 8-bit binary number that is equivalent to 0x17 right two, give the result in binary.
1
16. When a binary rotate operation is performed binary data can be shifted right or left: the bit that is shifted out from one end will be brought back in on the other end. Rotate the 8-bit binary number that is equivalent to 0x4B left two, give the result in binary.
17. For an 8-bit (byte) sized binary number, what mask and operation would you use to set (make 1) the lower 2 bits without changing the remaining bits?