Set the bits so the 8-bit register holds 0xF9. What is the pattern's value N in decimal?
Number systems worksheet with answers
1.Easy
0xF9
N =
2.Easy
Convert the hexadecimal number 0xCAB to decimal. Find N.
0xCABA = 10 … F = 15
N =
3.Medium
Set the bits so they store −92 in 8-bit two's complement. Read as an unsigned number, what is the pattern's value U?
N = −928 bit
U =
4.Medium
Set the bits so they store −115 in 8-bit two's complement. Read as an unsigned number, what is the pattern's value U?
N = −1158 bit
U =
5.Hard
Set the bits to the 8-bit result of 1010 1100 XOR 0110 1110. What is the result's value R in decimal?
1010 1100XOR0110 1110
R =
6.Hard
What is the largest unsigned integer N that fits in 20 bits?
20 bit
N =
Answer key
- 1. N = 249
- 2. N = 3243
- 3. U = 164
- 4. U = 141
- 5. R = 194
- 6. N = 1.049 × 10⁶
Full step-by-step solutions: practise this topic on examproblems.com.