Set the bits so the 8-bit register holds 0xDE. What is the pattern's value N in decimal?
Number systems worksheet with answers
1.Easy
0xDE
N =
2.Easy
Convert the binary number 1010 1010₂ to decimal. Find N.
1010 1010₂
N =
3.Medium
The 8-bit pattern 1001 0101 stores a signed integer in two's complement. What is its value N in decimal?
1001 01018 bit
N =
4.Medium
Set the bits so they store −52 in 8-bit two's complement. Read as an unsigned number, what is the pattern's value U?
N = −528 bit
U =
5.Hard
Set the bits to the 8-bit result of 1000 0000 XOR 1010 0000. What is the result's value R in decimal?
1000 0000XOR1010 0000
R =
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 = 222
- 2. N = 170
- 3. N = −107
- 4. U = 204
- 5. R = 32
- 6. N = −2.147 × 10⁹
Full step-by-step solutions: practise this topic on examproblems.com.