4.5.4.1 Unsigned binary and 4.5.4.3 Signed binary using two’s complement Flashcards

1
Q

What is the difference between unsigned binary and

signed binary

A

unsigned binary - fixed-point system
signed binary - the value holds a positive or negative value using it’s most significant bit (the last bit to the left), the “signed bit”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the minimum value in unsigned binary?

A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the maximum value in unsigned binary?

A

2^(n) -1

n = number of bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the range of values in two’s complement binary?

A
  • ( 2^(n-1)) to 2^(n-1) - 1

e. g in 8 bits, range is -128 to 127

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the number of possible values in unsigned binary?

A

2^n

n = number of bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly