Quiz 1 + Take Home Notes: 1. The exam is open book and open notes. 2. Do the pro
ID: 3806988 • Letter: Q
Question
Quiz 1 + Take Home Notes:
1. The exam is open book and open notes.
2. Do the problems in any order, as long as they are properly labeled.
3. Do the easiest problems first.
4. If you attempt a problem and cannot solve it, move on and try to come back to it later.
5. Do not get stuck on any one problem.
6. Check your answers for mistakes in solution steps.
7. Content: o Base 10 (decimal) o Base 2 (binary) o Base 16 (hexadecimal) o Base
8 (octal) o Other Bases. -Radix Conversions o Signed Integer representations: 2’s complement 1’s complement signed-magnitude o Binary arithmetic: addition and subtraction Character, Symbol and Text Representations o Ascii code o Unicode
1.
Find the two's complement of the following numbers. Represent in both binary and hexadecimal.
a. FFFF FFFF FEFE EFEF
b. DF7E FDCB 970E 58FA
Explanation / Answer
Answers:
For finding the 2’s complement of the given number:
First convert the given number into 1’s complement , then add the 1 to the 1’s complement number. Then we can get the 2’s complement
First convert the given hexadecimal number to binary number system
F F F F F F F F F E F E E F E F
1111 1111 1111 1111 1111 1111 1111 1111 1111 1110 1111 1110 1110 1111 1110 1111
Then we can convert the binary number into 1’s complement
0000000000000000 0000000000000000 0000000100000001 0001000000010000
1
_________________________________________________________________
0000000000000000 0000000000000000 0000000100000001 0001000000010001
_________________________________________________________________
Binary
0000000000000000 0000000000000000 0000000100000001 0001000000010001
hexa decimal
0000 0000 0101 1010
First convert the given hexadecimal number to binary number system
D F 7 E F D C B 9 7 0 E 5 8 F A
1101 1111 0111 1110 1111 1101 1100 1011 1001 0111 0000 1110 0101 1000 1111 1010
Then we can convert the binary number into 1’s complement
0010000010000001 0000001000110100 0110100011110001 1010011100000101
1
_________________________________________________________________
0010000010000001 0000001000110100 0110100011110001 1010011100000110
_________________________________________________________________
Binary
0010000010000001 0000001000110100 0110100011110001 1010011100000110
Hexa decimal
2081 0234 68F1 A706
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.