Data representation Flashcards
what is a rational number?
any value expressed as a ratio or fraction.
what is a irrational number?
can’t be express as a fraction has endless series of digits and rounding would cause a rounding error. e.g Pi.
what is a Ordinal numbers?
rating or ranking like first second numbers.
how do you convert between decimal to binary?
divide the decimal by 2 because binary use base 2.
how do you convert binary to hexadecimal?
uses nibble 4 bits 2 sets not 8 bits and only add the 1’s that can’t go above 8 decimal.
how to convert hexadecimal to decimal?
16 x the first hex digit and 1 x the second digit add together = decimal.
how to convert decimal to hexadecimal?
divide decimal by 16 get first digit and remainder becomes second one.
why is hexadecimal used?
Less likely to write a mistake, easy to remember, quicker to write, define colours and is easy to convert.
what is gibi/Giga 2 to the power of?
30
how many combinations does ASCII 7 bit use?
128
how many bits does Unicode use?
16
what is a parity bit?
A bit used to check errors by making the 1’s add up to even or odd depending on the parity bit and is found at the start of line of binary.
what is majority voting?
sends each bit three times so if one is flipped it takes the bit what is in majority as the correct number.
How does binary addition work?
Add bits together right to left one bit from each line
How do you multiply binary by 2
Add a 0 to the end
How would you multiply binary in general?
Line binary one above other and for each bit on second line times it by the bit above each of first line. So for the first bit in second line you should have a line under it. Do this again for second bit but add a 0 to the start and 2 0 to the 3 red bit on second line then add the lines of bits you create together