Set the bits so the 8-bit register holds 0xD8. What is the pattern's value N in decimal?
Number systems worksheet with answers
1.Easy
0xD8
N =
2.Easy
Convert the hexadecimal number 0x465 to decimal. Find N.
0x465A = 10 … F = 15
N =
3.Medium
Write −13 as an 8-bit two's complement pattern. Read the pattern as an unsigned binary number: what is its value U in decimal?
N = −138 bit
U =
4.Medium
Set the bits so they store −116 in 8-bit two's complement. Read as an unsigned number, what is the pattern's value U?
N = −1168 bit
U =
5.Hard
Set the bits to the 8-bit result of 0100 1100 XOR 1111 1010. What is the result's value R in decimal?
0100 1100XOR1111 1010
R =
6.Hard
An uncompressed image is 1280 × 720 pixels with 16 bits per pixel. How much memory M does it take, in KiB (1 KiB = 1024 bytes)?
1280 × 720 px16 bit/px1 KiB = 1024 B
M = KiB
Answer key
- 1. N = 216
- 2. N = 1125
- 3. U = 243
- 4. U = 140
- 5. R = 182
- 6. M = 1800 KiB
Full step-by-step solutions: practise this topic on examproblems.com.