Integer Representation Flashcards

1
Q

What is ‘sign and modulus’

A

A method of storing negative numbers which uses the left-most bit to represent the sign. The remaining bits give the modulus or magnitude of the number.

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

In sign and modulus storage, what does a 1 in the leftmost bit represent?

A

A negative number

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

How do you represent a negative number in 1s compliment?

A

You ‘flip’ the bits of the positive binary representation, changing 0s to 1s and 1s to 0s

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

How do you represent a negative number in 2s compliment?

A

You add 1 to the 1s complement of the number.

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