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
what is a real number?
a rational or irrational number used for measuring.
how many combinations does ASCII 8 bit use?
255
what can cause errors transmission?
Electrical interference, power surge, synchronisation issues and wear and tear on cables
what is check digit?
An extra digit at the end of string of digit used in bar-codes.
To complicated to explain here i suggest you look how to work it out.
what is checksum and how does it work?
Total sum of all bytes add up sent with data and is check other side if data matches the checksum.
how does two’s complement work?
Flip all the bits in the even of that number and add one to the end.
What is two’s complement used for?
to ensure that subtraction occurs when adding negative numbers.
when representing a fraction in binary what 4 fraction do you use to represent the digits after the decimal point ?
1/2, 1/4 , 1/8, 1/16. think of after decimal it’s 2 to the power of -1 and so on.