Set the bits so the 8-bit register holds 0x1D. What is the pattern's value N in decimal?
Number systems worksheet with answers
1.Easy
0x1D
N =
2.Easy
Set the bits so the 8-bit register holds 0x42. What is the pattern's value N in decimal?
0x42
N =
3.Medium
Set the bits so they store −112 in 8-bit two's complement. Read as an unsigned number, what is the pattern's value U?
N = −1128 bit
U =
4.Medium
Set the bits so they store −40 in 8-bit two's complement. Read as an unsigned number, what is the pattern's value U?
N = −408 bit
U =
5.Hard
What is the most negative integer N that can be stored in 20-bit two's complement?
20 bit
N =
6.Hard
Set the bits to the 8-bit result of 1001 1010 OR 0111 0011. What is the result's value R in decimal?
1001 1010OR0111 0011
R =
Answer key
- 1. N = 29
- 2. N = 66
- 3. U = 144
- 4. U = 216
- 5. N = −524288
- 6. R = 251
Full step-by-step solutions: practise this topic on examproblems.com.