Binary Flashcards

1
Q

What are the 2 methods of representing negative numbers in binary

A

Sign and magnitude
Twos compliment

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

What does MSB stand for

A

Most significant bit: the leftmost bit

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

How is a negative represented using sign and magnitude

A

The MSB represents the sign of the number

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

When using sign and magnitude what would a zero as the first bit represent

A

A positive number

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

Describe twos compliment for representing negative binary values

A

The MSB represents a negative value

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

Describe how to swap the sign of a number using twos complement

A

Starting on the right copy each of the bits until you reach the first 1
After this swap every 1 for a 0 and every 0 for a 1

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

Describe how to subtract binary values using twos complement

A

Swap the sign of the second value and perform a binary addition

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