Set the bits so the 8-bit register holds 0xB8. What is the pattern's value N in decimal?
Number systems worksheet with answers
1.Easy
0xB8
N =
2.Easy
Set the bits so the 8-bit register holds 0x29. What is the pattern's value N in decimal?
0x29
N =
3.Medium
Set the bits so they store −64 in 8-bit two's complement. Read as an unsigned number, what is the pattern's value U?
N = −648 bit
U =
4.Medium
Set the bits so they store −116 in 8-bit two's complement. Read as an unsigned number, what is the pattern's value U?
N = −1168 bit
U =
5.Hard
A system must give every one of 571 items its own binary code of the same length. What is the smallest number of bits b needed?
571
b = bit
6.Hard
What is the most negative integer N that can be stored in 32-bit two's complement?
32 bit
N =
Answer key
- 1. N = 184
- 2. N = 41
- 3. U = 192
- 4. U = 140
- 5. b = 10 bit
- 6. N = −2.147 × 10⁹
Full step-by-step solutions: practise this topic on examproblems.com.