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.
2
Q
What is a logical shift in binary?
A
Moving bits left or right and filling empty spaces with 0.
3
Q
What is two’s complement used for?
A
To represent negative numbers in binary.
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.
5
Q
overflow error:
A
a type of error that occurs when a number larger than a
register can store is generated.