6. What is the hex code for an integer which contains alternating l\'s and O\'s,
ID: 3875493 • Letter: 6
Question
6. What is the hex code for an integer which contains alternating l's and O's, starting with a 1? 7. What is the hex code for an integer where the most significant byte is all 1's, the next is all 1's, and next is all 0's, and the last is all 1's? 8. What is the hex code for the most positive int value in C/C++? 9. What is the hex code for the most negative int value in C/C++ 10. What is the 2's complement representation of 70 using 8 bits? 11. What is the 2's complement representation of -34 using 8 bits? 12. Add 28 and -9 using 2's complement using 8 bits. 13. Add -52 and -4 using 2's complement using 8 bits. 14. Perform 55 - 89 using 2's complement using 8 bits 15. If you had the C code int a 68, what shifting operation could be done to multiply a by 64 without using multiplication?Explanation / Answer
1.(10101010)2=(AA)16
2.(11111111111111110000000011111111)2 = (FFFF00FF)16 = FFFF00FFh
3.(32768)10 = (8000)16
4.(-32768)10 = (FFFFFFFFFFFF8000)16
5.2 's complement(70)=01000110
6.12's complement(-34)=1011110
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.