4.5 Data Representation - Calculations Flashcards
Get paper you numbnut
What is -9 in 8-bit binary?
1111 0111
What is -43 in 8-bit binary?
1101 0101
What is -65 in 8-bit binary?
1011 1111
What is -120 in 8-bit binary?
1000 1000
What is -1 in 8-bit binary?
1111 1111
What is 0011 0010 times by 2 in 8-bit binary?
0110 0100
What is 0100 0101 times by 2 in 8-bit binary?
1000 1010
What is 1010 1110 times by 2 in 8-bit binary?
0101 1100 with an overflow
What is 0011 0010 times by 4 in 8-bit binary?
1100 1000
What is 0100 0101 times by 4 in 8-bit binary?
0001 0100 with an overflow
What is 1010 1110 times by 4 in 8-bit binary?
1011 1000 with an overflow
What is 0011 0010 times by 101 in 8-bit binary?
1111 1010
What is 0100 0101 times by 101 in 8-bit binary?
0101 1001 with an overflow
What is 1010 1110 times by 101 in 8-bit binary?
0110 0110 with an overflow
What is 0001 1010 add 000 0101 in 8-bit binary?
0001 1111
What is 0000 1001 add 0000 0101 in 8-bit binary?
0000 1110
What is 0001 0011 add 0000 1011 in 8-bit binary?
0000 1110
What is 0110 1111 add 0101 1101 in 8-bit binary?
0100 0001
Show how a computer would subtract 9 from 18 in binary
9 = 0000 0101
-9 = 0000 1011
18 = 0000 1010
18 + (-9) = (1) 0101 1100
Show how a computer would subtract 14 from 51 in binary
14= 0000 1110 -14 =1111 0010 51 = 0011 0011 51 + (-14) = (1) 0010 0101 Carry Bits 1110 0100
What is 4.5 in 8 bit binary with a fixed point after the 4th position
0100.1000
What is 3.125 in 8 bit binary with a fixed point after the 4th position
0011.0010
What is 9.3125 in 8 bit binary with a fixed point after the 4th position
1001.0101
What is 15.0625 in 8 bit binary with a fixed point after the 4th position
1111.0001
What is 5.0 in 8 bit binary with a fixed point after the 4th position
0101.0000
What is 01000011.01000100 in decimal
67.26563
What is 10111111.10010011 in decimal
191.5742