Computer Science – 1.1 Data Representation | e-Consult
1.1 Data Representation (1 questions)
Login to see all questions.
Click on a question to view the answer
Answer:
1. Convert decimal numbers to binary:
- 1100 (decimal) = 1100 (binary)
- 0111 (decimal) = 0111 (binary)
2. Perform binary subtraction (using the two's complement method):
| Binary |
| Binary 1 | Binary 2 | Difference |
| 1 | 1 | 0 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
| 0 | 0 | 0 |
3. Result: The binary difference is 0011. Since this is a 4-bit representation, the result is 0011 (binary) = 3 (decimal).