Set the bits so the 8-bit register holds 0x5C. What is the pattern's value N in decimal?
Number systems worksheet with answers
1.Easy
0x5C
N =
2.Easy
Set the bits so the 8-bit register holds 0x90. What is the pattern's value N in decimal?
0x90
N =
3.Medium
The 8-bit pattern 1001 1100 stores a signed integer in two's complement. What is its value N in decimal?
1001 11008 bit
N =
4.Medium
Set the bits so they store −105 in 8-bit two's complement. Read as an unsigned number, what is the pattern's value U?
N = −1058 bit
U =
5.Hard
Set the bits to the 8-bit result of 1001 1110 >> 1. What is the result's value R in decimal?
1001 1110>> 1
R =
6.Hard
What is the largest unsigned integer N that fits in 20 bits?
20 bit
N =
Answer key
- 1. N = 92
- 2. N = 144
- 3. N = −100
- 4. U = 151
- 5. R = 79
- 6. N = 1.049 × 10⁶
Full step-by-step solutions: practise this topic on examproblems.com.