Question Detail

COS 102 test topic Objective Question

Question

What is the range of integers that can be represented using an 8-bit signed two's complement format?
Options
A -128 to 127
Correct Answer
B -127 to 128
C -256 to 255
D 0 to 255
Correct Answer

Option A is the correct answer.

Detailed Explanation

An n-bit two's complement integer spans from -2^(n-1) to 2^(n-1) - 1, which evaluates to -128 to 127 for n=8.

Hint

No hint available

Question Info