Computer Science – Data representation | e-Consult
Data representation (1 questions)
Login to see all questions.
Click on a question to view the answer
1. Represent the absolute value (15) in binary:
| Decimal: 15 | Binary: 00001111 |
2. Invert all the bits (one's complement):
| Binary: 00001111 | Inverted: 11110000 |
3. Add 1 to the one's complement:
| Inverted: 11110000 | Add 1: 11110001 |
Therefore, the two's complement representation of -15 is 11110001.