What range of values can an 8-bit two's complement number represent?
A
−127 to +127
B
−256 to +255
C
−128 to +127
Correct answer
D
0 to 255
Correct answer
C. −128 to +127
15 views
⚔️
Challenge a friend on Computer Engineering
Same MCQs, timed, live leaderboard. Send the link on WhatsApp – no sign-up needed.
Create challenge
Explanation
An n-bit two's complement number ranges from −2ⁿ⁻¹ to 2ⁿ⁻¹ − 1, giving −128 to +127 for 8 bits. −127 to +127 is the sign-magnitude range, which wastes a code on −0.
Reference
Asked in: GATE CS, NTS, PEC
Doubts & discussionNot sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ
‹ Previous MCQ How many address bits are needed for a byte-addressable memory of 64 KB? Next MCQ › 40% of a program's execution time is sped up by a factor of 4. According to Amdahl's law, what is the overall speedup?