One's Complement - CORRECT ANSWER One's complement integers represent a
negative by inverting the bit pattern. 8 bit 1: 00000001 8 bit -1: 11111110
Two zeros, not commonly used in computers now, invert negative to get positive,
etc
Big Endian - CORRECT ANSWER Most significant bytes first, how we write
numbers
12 34 56 78
Little Endian - CORRECT ANSWER Least significant bytes first, x86 processors
78 56 34 12
Two's to one's:
1010
1001
1010 0111
1000 0101 - CORRECT ANSWER subtract one in binary
1001 = -7 + 1 = -6
1000 = -7
1010 0110 = -127 + 32 + 4 + 2 = -89
1000 0100 = -127 + 4 = -123
One's to two's:
1010
1001
1010 0111
1000 0101 - CORRECT ANSWER add one in binary
1011 = -8 + 2 + 1 = -5
1010 = -8 + 2 = -6
1010 1000 = -128 + 32 + 8 = -88
1000 0110 = -128 + 4 + 2 = -122
Two's:
, 1010
1101
1011 1010
1000 0111 - CORRECT ANSWER -8 + 2 = -6
-8 + 4 + 1 = -3
-128 + 32 + 16 + 8 + 2 = -70
-128 + 4 + 2 + 1 = -121
One's:
1010
1101
1011 1010
1000 0111 - CORRECT ANSWER -7 + 2 = -5
-7 + 4 + 1 = -2
-127 + 32 + 16 + 8 + 2 = -69
-127 + 4 + 2 + 1 = -120
hex to binary:
A
C
3D
35F - CORRECT ANSWER 1010
1100
0011 1101
0011 0101 1110
binary to hex:
0001
1011
1101
1110 0101 - CORRECT ANSWER 1
B
D
E5
Padding - CORRECT ANSWER Additional data applied between values to reach the
correct word size