Number Storage Flashcards
What are the rules for adding binary numbers
0 + 0 = 0
1+ 0 = 1
0 + 1 = 1
1 +1 = 0^1
1 + 1 + 1 = 1^1
Compare binary and denary
Binary is a base 2 number system(0 and 1) while densely is a base 10 number system(0 to 9)
Add 10001101 and 01001000
11010101
Explain what an overflow error is
Occurs when an extra carried bit cannot fit into the bits provided. Leading to a loss of data and a loss of accuracy that could also cause the software to crash.
What is a binary shift
Used to divide or multiply binary numbers left or right.
To shift left the amount of digits at the front are moved to the back.(all 0s)
To shift right the amount of digits at the back are moved to the front.
Shift left by 4 places 10101101
11010000
Shift right by 2 places 01110111
00011101
What is hexadecimal
A Base 16 number system using 16 possible values. Used because very few characters are needed compared to write the same value.
This makes it easier for humans as a single hex represents any denary number. And double digit numbers are converted into letters. E.g A9
Why is hexadecimal preferred over binary(3)
It’s simple to remember large numbers in hex because double digit numbers are converted into letters. E.g A9.
Because hex is shorter it is less prone to errors
This makes it easier for humans as a single hex represents any denary number making conversion between binary and hex easier than binary and denary.
Convert the hex 87 into denary
16 | 1
8 7
8 x 16 = 128
128 + 7 = 135
Convert the denary number 106 into hex
106 / 16( table) = 6 remainder 10
16 | 1
6. A
=6A
Convert 10110011 from binary into Hex
B3
Convert FA from hex to binary
11111010