Question: maths questions on binary. i would apprecuate if a good samaritan could help 1. (6 marks) The following hexadecimal values are shorthand for 16-bit two's.com

maths questions on binary. i would apprecuate if a good samaritan could help  maths questions on binary. i would apprecuate if a good samaritan
could help 1. (6 marks) The following hexadecimal values are shorthand for
16-bit two's.com plement binary numbers. Working purely in hex, negate each and
then state. whether the result is positive or negative. (a) 5E91 (b)
DOOF 2. (2 marks) Consider the following 12-bit numbers below. Assuming they

1. (6 marks) The following hexadecimal values are shorthand for 16-bit two's.com plement binary numbers. Working purely in hex, negate each and then state. whether the result is positive or negative. (a) 5E91 (b) DOOF 2. (2 marks) Consider the following 12-bit numbers below. Assuming they are un signed, add them to produce a 12-bit sum the same way a computer would. Als state whether or not an error results using the same method a computer would 110010001001 011010001101 3. (3 marks) Repeat the addition and error detection from the previous questions but this time assuming that the numbers are in two's complementation Also: without converting to decimal, but simply by intuition, le att three numbers and applying your knowledge of two's completett, tity that result of the computer's error detection process what you would expert 4. (5 marka) On rare occasion, computer besed which plement be representation Consider the dela exprecum 7+(-3) 4. (5 marks) On rare occasions, computers have been designed which use one's com- plement base 2 representation. Consider the decimal expression below: 7+ (-3)= 4 (a) Convert all three numbers to 4-bit one's complement base 2. (b) Perform the one's complement base 2 operation and verify that the sum is as expected 5. (4 marks) Give the formulas for the minimum and maximum values representable in n bits for: (a) unsigned (b) signed magnitude (e) two's complement (d) one's complement 6. (4 marku) Use the above formulae to show the minimum and me representable for a 4 bit value for: (a) tunsigned COMP 231 Page 2 of (a) unsigned Slevised Perry 25 2021 Page 2 of 3 Co (b) signed magnitude (c) two's complement (d) one's complement (a) one's complement 7. (4 marks) Consider the number below, which is stored inside a computer which uses 16-bit 2's complement base 2 representation. 1101011001110101 (a) Is this number negative? Why, or why not? (b) What is the base-10 value of this number? 8. (4 marks) Assuming a fixed length of 8 bits (1 byte), represent the following decimal numbers in signed magnitude base 2 (a) 70 (b) - 128 9. (4 marka) Repent the above, but represent the item 10. (4 marka) Asume a computer is ingenitude to store 8-bit values. Further, assume you hear which the contents of byte memory location. However the premium deles (as a shorthand) instead of hinary: What decimal valamely following (b) -128 9. (4 marks) Repeat the above, but represent them in 2's complement bluse 2 10. (4 marks) Assume a computer is using signed magnitude brise 2 representation to store 8-bit values. Further, assume you have a program which con display the contents of 1-byte memory locations. However, the program displays her (as a shorthand) instead of binary. What decimal values are represented by the following: (a) C3 (b) 6E 11. (4 marks) Repeat the above, but time the mumbers are stored 8-bit complement base 2 1. (6 marks) The following hexadecimal values are shorthand for 16-bit two's.com plement binary numbers. Working purely in hex, negate each and then state. whether the result is positive or negative. (a) 5E91 (b) DOOF 2. (2 marks) Consider the following 12-bit numbers below. Assuming they are un signed, add them to produce a 12-bit sum the same way a computer would. Als state whether or not an error results using the same method a computer would 110010001001 011010001101 3. (3 marks) Repeat the addition and error detection from the previous questions but this time assuming that the numbers are in two's complementation Also: without converting to decimal, but simply by intuition, le att three numbers and applying your knowledge of two's completett, tity that result of the computer's error detection process what you would expert 4. (5 marka) On rare occasion, computer besed which plement be representation Consider the dela exprecum 7+(-3) 4. (5 marks) On rare occasions, computers have been designed which use one's com- plement base 2 representation. Consider the decimal expression below: 7+ (-3)= 4 (a) Convert all three numbers to 4-bit one's complement base 2. (b) Perform the one's complement base 2 operation and verify that the sum is as expected 5. (4 marks) Give the formulas for the minimum and maximum values representable in n bits for: (a) unsigned (b) signed magnitude (e) two's complement (d) one's complement 6. (4 marku) Use the above formulae to show the minimum and me representable for a 4 bit value for: (a) tunsigned COMP 231 Page 2 of (a) unsigned Slevised Perry 25 2021 Page 2 of 3 Co (b) signed magnitude (c) two's complement (d) one's complement (a) one's complement 7. (4 marks) Consider the number below, which is stored inside a computer which uses 16-bit 2's complement base 2 representation. 1101011001110101 (a) Is this number negative? Why, or why not? (b) What is the base-10 value of this number? 8. (4 marks) Assuming a fixed length of 8 bits (1 byte), represent the following decimal numbers in signed magnitude base 2 (a) 70 (b) - 128 9. (4 marka) Repent the above, but represent the item 10. (4 marka) Asume a computer is ingenitude to store 8-bit values. Further, assume you hear which the contents of byte memory location. However the premium deles (as a shorthand) instead of hinary: What decimal valamely following (b) -128 9. (4 marks) Repeat the above, but represent them in 2's complement bluse 2 10. (4 marks) Assume a computer is using signed magnitude brise 2 representation to store 8-bit values. Further, assume you have a program which con display the contents of 1-byte memory locations. However, the program displays her (as a shorthand) instead of binary. What decimal values are represented by the following: (a) C3 (b) 6E 11. (4 marks) Repeat the above, but time the mumbers are stored 8-bit complement base 2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!