1.The following number is in binary. Convert it to decimal. 0010 1010 2.Add the following two binary numbers together and express your results in binary. 1000 1010 + 0111 0000 3.Add the following two binary numbers together and express your results in decimal. 0010 1010 + 0111 1100 4.The following number is in hexadecimal. Convert it to binary. 0x42 5.The following number is in hexadecimal. Convert it to decimal. 0xFE 6.The following number is in decimal. Convert it to hexadecimal. 223
1) => 00101010 => 0x2^7+0x2^6+1x2^5+0x2^4+1x2^3+0x2^2+1x2^1+0x2^0 => 0x128+0x64+1x32+0x16+1x8+0x4+1x2+0x1 => 0+0+32+0+8+0+2+0 => 42 Answer: 42 2) Adding 10001010 and 01110000 in binary 10001010 01110000 ------------- 11111010 ------------- Answer: 11111010 3) Adding 00101010 and 01111100 in binary 00101010 01111100 ------------- 10100110 ------------- => 10100110 => 1x2^7+0x2^6+1x2^5+0x2^4+0x2^3+1x2^2+1x2^1+0x2^0 => 1x128+0x64+1x32+0x16+0x8+1x4+1x2+0x1 => 128+0+32+0+0+4+2+0 => 166 Answer: 166 4) Hexadecimal Binary 0 0000 1 0001 2 0010 3 0011 4 0100 5 0101 6 0110 7 0111 8 1000 9 1001 A 1010 B 1011 C 1100 D 1101 E 1110 F 1111 Use this table to convert from hexadecimal to binary Converting 42 to binary 4 => 0100 2 => 0010 So, in binary 42 is 01000010 Answer: 01000010 5) FE => 15*16 + 14 => 240 + 14 => 254 Answer: 254 6) 223 Divide 223 successively by 16 until the quotient is 0 223/16 = 13, remainder is 15 13/16 = 0, remainder is 13 15 in hexadecimal is F 13 in hexadecimal is D Read remainders from the bottom to top as DF Answer: 0xDF
Get Answers For Free
Most questions answered within 1 hours.