1.2 Binary manipulation and negative numbers Flashcards

(5 cards)

1
Q

What happens when a binary result is too big for the number of bits?

A

An overflow occurs — extra bit can’t be stored.

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

What is a logical shift in binary?

A

Moving bits left or right and filling empty spaces with 0.

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

What is two’s complement used for?

A

To represent negative numbers in binary.

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

How do you find a number’s two’s complement?

A

Find the first 1 from the right, flip all bits to the left of it.

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

overflow error:

A

a type of error that occurs when a number larger than a
register can store is generated.

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