1) How many ASCII characters can be stored in - a byte? - four bytes? 2) How man
ID: 3550562 • Letter: 1
Question
1) How many ASCII characters can be stored in
- a byte?
- four bytes?
2) How many different values can be stored in:
(a) a bit?
(b) two bits?
(c) four bits?
(d) n bits?
3) How many different values can be stored in:
(a) a byte?
(b) two bytes?
(c) four bytes?
4) What is the largest unsigned base 2 number that can be stored in: (give your answer in decimal, binary, and hex)
(a) a byte?
(b) two bytes?
(c) four bytes?
5) What is the largest (positive) 2's complement number that can be stored in: (give your answer in decimal, binary, and hex)
(a) a byte?
(b) two bytes?
(c) four bytes?
Explanation / Answer
1a) 1
1b) 4
2a) 2
2b) 4
2c) 16
2d) 2^n
3a) 256
3b) 2^16
3c) 2^32
4a) decimal-255, binary-11111111, hex-0xFF
4b) decimal-65535, binary-1111111111111111, hex-0xFFFF
4b) decimal-4294967295, binary-11111111111111111111111111111111, hex-0xFFFFFFFF
5a) decimal-127, binary-01111111, hex-0x7F
5b) decimal-32767, binary-0111111111111111, hex-0x7FFF
5c) decimal-2147483647, binary-01111111111111111111111111111111, hex-0x7FFFFFFF
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.