Two’s compliment Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What does a 1 at the start of a binary number represent

A

A negative number

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

What does a 0 at the start of a binary number represent

A

A positive number

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

What is +1 in binary (8 digits)

A

0000 0001

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

What is -1 in binary (8 digits)

A

1111 1111

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

How to convert positive binary to negative binary (8 bit)

A

128 - number
Answer - closest bit repetitively until 0

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

How to subtract two binary numbers

A

Convert one to negative and then do addition

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

Unsigned binary vs signed binary

A

Unsigned binary is always positive
Signed binary can be positive or negative depending on the largest value

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

What mathematical operations can processors carry out

A

Only addition

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

How do processors subtract numbers

A

By converting one number to a negative and adding them together

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

Another way to convert to a negative binary number

A

Find the number’s unsigned binary number
Put a 1 at the largest bit
From the right, keep everything the same until the first 1
After the first 1, swap every 0 for a 1 and every 1 for a 0

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