Set the bits so the 8-bit register holds 0x32. What is the pattern's value N in decimal?
Number systems worksheet with answers
1.Easy
0x32
N =
2.Easy
Set the bits so the 8-bit register holds 0xAD. What is the pattern's value N in decimal?
0xAD
N =
3.Medium
The 8-bit pattern 1000 0000 stores a signed integer in two's complement. What is its value N in decimal?
1000 00008 bit
N =
4.Medium
Set the bits so they store −90 in 8-bit two's complement. Read as an unsigned number, what is the pattern's value U?
N = −908 bit
U =
5.Hard
Set the bits to the 8-bit result of 1000 0100 << 2. What is the result's value R in decimal?
1000 0100<< 2
R =
6.Hard
What is the largest unsigned integer N that fits in 32 bits?
32 bit
N =
Answer key
- 1. N = 50
- 2. N = 173
- 3. N = −128
- 4. U = 166
- 5. R = 16
- 6. N = 4.295 × 10⁹
Full step-by-step solutions: practise this topic on examproblems.com.